function_body
Obtain the verbatim source of one function from a file by providing its path and name, with disambiguation for ambiguous definitions. Returns the function's signature, decorators, and body.
Instructions
Verbatim source of ONE function — the focused read. Instead of Reading a whole file, get exactly that function's source (signature + decorators + body). Returns JSON {path, name, parent, kind, signature, line, endLine, async, exported, hasErrors, body}. name matches the bare or dotted-qualified form from functions/find ('Widget.render'); if ambiguous the call FAILS listing candidates with lines — pass the qualified name or line, it never guesses. body is real source, capped at 20000 chars (truncated.bodyChars = true length — Read line..endLine for the rest). The body IS the territory for this one function (reason about its internals) — but re-Read before editing. Languages: TS/TSX/JS/JSX/Python.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Disambiguator: the definition line (from functions/find) when a name has several definitions. | |
| name | Yes | Function/method name, bare ('render') or dotted ('Widget.render') as reported by functions/find. Default exports are 'default'. | |
| path | Yes | File path. Relative paths resolve against the server's working directory; absolute paths are allowed only inside it (outside is rejected — call info to see the root). Code: .ts .tsx .mts .cts .js .jsx .mjs .cjs .py; docs: .md .markdown .mdx |