method_body
Retrieve compact, line-numbered source for one or more methods, with optional docblocks or raw text, to inspect and edit functions without reading whole files.
Instructions
Line-numbered source of one or more methods/functions, compact: the docblock above the method and blank lines dropped, comments inside the body kept (line numbers stay exact; the header says when a docblock was omitted; doc: true adds it, raw: true = exact, unfiltered text, e.g. before editing). Use after outline instead of reading the whole file. Example: {"path": "app/Order.php", "method": ["cancel", "refund"]} (method may be a string or a list).
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>",
"method": "<method>"
},
"name": "method_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Also include the docblock / doc comments above each method. | |
| raw | No | Exact, unfiltered source (docblock and blank lines kept), e.g. before an exact edit. | |
| full | No | Disable the 400-line output cap. | |
| path | Yes | File path, relative to the project root. | |
| method | Yes | Method/function name (`"cancel"`), or an array of names (`["cancel", "refund"]`). | |
| project | No | Registered project alias; default: the server's working directory. |