trace_function
Hook a function to capture its arguments, return value, and stack trace for simplified call-chain debugging.
Instructions
Trace a function: hook with capture preset [args, return, stack]. Convenience wrapper for call-chain debugging.
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": {
"name": "<name>",
"targetExpr": "<targetExpr>"
},
"name": "trace_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| targetExpr | Yes | ||
| target | No |