read_function_body
Retrieve the complete body of a specified function from a source file, returning only its implementation. Use after code skeleton extraction to inspect the function's logic without loading the full file.
Instructions
Expands the full implementation of a specific function/method from a file. Use AFTER read_code_skeleton when you need to see a particular function's logic. This returns ONLY the requested function's complete body, not the entire file.
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": {
"filePath": "<filePath>",
"functionName": "<functionName>"
},
"name": "read_function_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source code file | |
| functionName | Yes | Name of the function or method to expand | |
| includeContext | No | Include 5 lines of context before/after the function. Default: true. |