function.body.set
Replace the body range of an existing function in a Ghidra session by specifying its start and optional end or length.
Instructions
Replace the body range of an existing function.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"function_start": "<function_start>",
"start": "<start>"
},
"name": "function.body.set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | Yes | ||
| length | No | ||
| session_id | Yes | ||
| function_start | Yes |