Annotate Native Function
annotate_native_functionAtomically updates a function’s name and entry comments in Ghidra’s session, then reads them back and returns a refreshed dossier; original executable bytes stay unchanged.
Instructions
Atomically update one function name and/or entry comments, read them back, and return a refreshed complete function dossier. Ghidra changes its ephemeral session analysis database only; original executable bytes remain unchanged. Empty comment text clears that comment. Edits remain available to subsequent MCP calls until close; CLI returns the updated dossier before discarding its session. Invalid edits roll back the entire operation. Windows P0 and providers without this capability are unsupported.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "entry",
"comment": "Analyst observation",
"procedure": "0x10100"
},
"name": "annotate_native_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact name used by this operation. | |
| comment | No | Regular entry comment; empty text clears it | |
| procedure | Yes | ||
| inline_comment | No | Inline entry comment; empty text clears it |