Search documents
search_documentsSearch the public documents (PDF files) that this website publishes and return each as a document card with its schema.org node. Filter by topic or sector (slugs), by the address of a page on this website to find the documents related to it, or search by phrase. Call get_document to open one document by its id. Only published, open documents appear, and none may be available.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Integer value. | |
| query | No | Optional search phrase. | |
| topic | No | Optional topic slug. | |
| sector | No | Optional sector slug. | |
| page_url | No | Optional address of a page on this website: only documents related to that page are returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The documents, each as a card. | |
| message | No | Why there are no documents, in plain words, when there are none. | |
| available | Yes | False when the documents cannot be read now (reasonCode says why); true for every other answer, one with no documents included. | |
| reasonCode | Yes | A stable code that says why the documents cannot be read, and an empty string when they can. | |
| schemaVersion | Yes | The version of the shape of this answer: 1. |