search_laravel_docs
Search Laravel documentation and get ranked sections that answer your question, covering framework, first-party services, packages, and learning resources. Use it first for any Laravel question, then read the matching section.
Instructions
Search Laravel's documentation and get back the sections that answer the question.
Covers every corpus on this server at once: the framework docs for the selected Laravel version, the first-party services (Forge, Vapor, Envoyer, Nova, Cloud, Nightwatch, Herd), fetched package docs (Livewire, Filament, Inertia, Spatie and others) and learning resources. Each result names a file and a section; pass them to read_laravel_doc_section as filename and section to read just that section.
Use it first for any Laravel question. Narrow with sources when you know the corpus, and set version for an older Laravel release. Results are ranked across corpora, and no single source takes the whole page when others match. Nothing found is a normal result with count 0.
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": {
"query": "<query>"
},
"name": "search_laravel_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many results to return, 1 to 20. Default 5 | |
| query | Yes | What to look for, as a question or as keywords | |
| sources | No | Restrict the search to any of "core", "services", "packages", "learning". Default: all four | |
| version | No | Laravel version for the framework docs (e.g. "12.x"). Defaults to the server's configured version. Services, packages and learning resources are not Laravel-versioned. | |
| all_versions | No | Search every Laravel version instead of one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many results follow; 0 when nothing matched | |
| query | Yes | ||
| scope | Yes | The Laravel versions searched, comma-separated | |
| results | Yes | ||
| sources | Yes | ||
| matched_needs | No | Common tasks recognised in the query, whose usual documentation pages were favoured |