memory_map
List memory blocks with address ranges, sizes, and permissions, or update flags for a selected block in a Ghidra program.
Instructions
List memory blocks, or update permission flags for one memory block.
With no `target`, this returns every block in the program memory map with
address range, size, permissions, initialization state, source name, and
comment. With `target`, select a block either by exact block name or by an
address contained in the block. Passing any permission argument changes that
block's corresponding flag before returning the updated block record.
Args:
program: Required Ghidra project path or name to target.
target: Optional block name or address inside a block.
read: Optional read permission value for the selected block.
write: Optional write permission value for the selected block.
execute: Optional execute permission value for the selected block.
volatile: Optional volatile flag value for the selected block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | ||
| write | No | ||
| target | No | ||
| execute | No | ||
| program | Yes | ||
| volatile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |