set_function_prototype
Set a function's signature from a C prototype to define parameter types and return values, improving Ghidra decompilation.
Instructions
Set a function's signature from a C prototype, e.g. "int foo(char *buf, int len)".
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": {
"function_address": "<function_address>",
"prototype": "<prototype>"
},
"name": "set_function_prototype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prototype | Yes | ||
| function_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||