read_laravel_doc_section
Reads a single section of a Laravel documentation page by filename and heading or anchor, returning only that section's markdown to keep token usage low instead of loading the whole page.
Instructions
Read one section of a documentation page.
Give it a search result's file (as filename) and section, and it returns that section's markdown and nothing else. This is the cheap way to read: a whole page such as queues.md runs to tens of thousands of tokens, and an answer usually needs one section of it.
section may be an anchor ("dealing-with-failed-jobs"), a heading ("Dealing With Failed Jobs") or a heading written as a slug. If the section is not found, the error lists the sections the page does have.
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": {
"filename": "<filename>",
"section": "<section>"
},
"name": "read_laravel_doc_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | Yes | The section's anchor or heading, as search returns it | |
| version | No | Laravel version for a framework page named without one. Ignored for service, package and learning pages | |
| filename | Yes | The page, as search returns it: "queues.md", "12.x/queues.md" or "forge/servers/php.md" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| corpus | No | The service, package or learning source, for any other page | |
| content | Yes | The section as markdown; the same text as the result's text content | |
| heading | Yes | ||
| section | Yes | ||
| version | No | Laravel version, for a framework page |