get_function_body
Extract the full source of any Python function or method with line numbers, using a file path and function or dotted method name.
Instructions
Extract the full source of a function or method, with line numbers.
Args:
path: Path to a .py file.
name: Function name, Class.method, or a dotted nested path.
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": {
"path": "<path>",
"name": "<name>"
},
"name": "get_function_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |