read
Returns the source code of a codebase node, sliced from its file by the graph's line span. Use after locate or find to read exact code without grepping.
Instructions
Return the source code for a node, sliced from its file by the graph's line span. Use after locate/find/activate to read the exact code without grepping. Returns a code block headed by the qname and path:start-end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node name or qname to read the source for. | |
| context_lines | No | Lines of padding above and below the node's span. Default 0. | |
| budget | No | Max chars in the result. 0 = no cap. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |