Unilateral spatial neglect (USN) results from impaired attentional networks and can affect various sensory modalities, such as visual and somatosensory. The rodent medial agranular cortex (AGm), located in the medial part of the forebrain from rostral to caudal direction, is considered a region associated with spatial attention. The AGm selectively receives multisensory input with the rostral AGm receiving somatosensory input and caudal part receiving visual input. Our previous study showed slower recovery from neglect with anterior AGm lesion using the somatosensory neglect assessment. Conversely, the functional differences in spatial attention across the entire AGm locations (anterior, intermediate, and posterior parts) are unknown. Here, we investigated the relationship between the severity of neglect and various locations across the entire AGm in a mouse stroke model using a newly developed program-based analysis method that does not require human intervention. Among the various lesion positions, acute severity was higher with the lesion in the intermediate rostrocaudal position. On the other hand, the recovery from USN-like behavior after this phase tended to be slower in cases with more rostral lesions in the AGm. Additionally, no motor paralysis was observed in any of the mice with lesions in each AGm. These results suggest that the intermediate rostrocaudal position of the AGm may significantly influence selection of the direction, regardless of the areas to which it is connected. On the contrary, recovery from USN-like behavior may be dependent on the areas to which it is connected.HighlightsLesion of the rodent medial agranular cortex (AGm) results in unilateral spatial neglect (USN).In the acute phase, the severity was higher with lesions in the intermediate AGm position.Recovery from somatosensory USN tended to be slower with rostral AGm lesions.Recovery from USN may depend on sensory modalities associated with the connected areas.Our results revealed location-dependent differences in attentional functions within the AGm.