fetch_code_snippets
Retrieves source code snippets for specified graph nodes by reading file paths and line ranges, with an optional workspace root for resolving files.
Instructions
Fetch source code snippets for given graph nodes.
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": {
"nodes": "<nodes>"
},
"name": "fetch_code_snippets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | YAML list of node objects with file_path, start_line, end_line. | |
| workspacePath | No | Optional workspace root path. |