Search the source library
search_documentsSearches primary-source documents (laws, budgets, contracts, reports) by title, summary or reference. Open a match with get_document. Matching is the content store's substring match and accents count; search_site folds accents and searches every kind at once. Paginates: when more results remain, the structured answer has a nextCursor (absent on the last page). To continue, call this tool again with the same arguments and cursor set to that value.
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": {
"q": "<q>"
},
"name": "search_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Words or a reference number. | |
| lang | No | en (English) or dv (Dhivehi). | en |
| limit | No | Results to return (1-25, default 10). | |
| cursor | No | Continue a previous result: the nextCursor it returned, unchanged. Only valid with the same other arguments (limit may differ). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | All matching documents, not just this page. | |
| documents | Yes | ||
| nextCursor | No | Opaque cursor for the next page: pass it back as the cursor argument, with the same other arguments. Absent on the last page. |