outline
Explains how a PHP feature or method works before grepping or reading files by mapping relevant classes, call flow, behaviour, wiring, and tests.
Instructions
Call this first, before grep or reading files, to explain or document a feature or how something works ("how does stock reservation work"). From the classes the topic names: the cluster by namespace and layer (kind, docblock summary, public signatures, constants), the interfaces and base classes around it, the flow from the routes, behaviour read in the bodies (guarded throws, branches), container wiring, users and untested classes. A topic naming a method (OrderService::place) outlines what it runs, 3 calls deep.
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": {
"topic": "<topic>"
},
"name": "outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | The feature in words or class names ("stock reservation"), or one method ("OrderService::place"). | |
| format | No | text (default, about 15 KB), full (every list uncut, often too large: prefer section) or json. | |
| section | No | Only one section, uncut: what a "+N more: section ..." line names. |