edb_call_function
Call any function within the debugged process to test behavior or trigger library calls. Returns the function's return value.
Instructions
Call a function in the context of the debugged process.
Equivalent to GDB's call command. Useful for testing functions
with specific arguments or calling library functions.
Args: params (CallFunctionInput): Function call - function_expr (str): Expression (e.g., 'printf("hello")', 'malloc(100)')
Returns: str: Function result (return value in EAX/RAX)
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": {
"params": "<params>"
},
"name": "edb_call_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |