get_function
Retrieve specific function implementations from code files to reduce token usage by extracting only needed function definitions instead of reading entire files.
Instructions
⭐ PREFERRED OVER Read: Get complete function code without reading the entire file. Saves 85% tokens compared to Read. Use when you need a specific function implementation instead of reading full files. Returns only the function definition with signature.
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": {
"functionName": "<functionName>"
},
"name": "get_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functionName | Yes | The name of the function to retrieve | |
| filePath | No | Optional: specific file path if known |