Search Documents by Title
search_docsSearch documents by title using workspace metadata to retrieve docId, title, direct URL, and trash status without exporting each document.
Instructions
Fast search for documents by title using workspace metadata. Much faster than exporting each doc. Returns docId, title, direct URL, and inTrash for each match.
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_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Optional tag filter (case-insensitive substring match against resolved tag names). | |
| limit | No | Max results to return (default: 20, maximum: 200). | |
| query | Yes | Search query — matched case-insensitively against doc titles. | |
| sortBy | No | Sort by match relevance (default) or by updatedAt. | |
| matchMode | No | How to match titles (default: substring). | |
| workspaceId | No | Workspace ID (optional if default set). | |
| sortDirection | No | Sort direction for updatedAt sorting (default: desc). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| query | No | ||
| sortBy | No | ||
| results | No | ||
| matchMode | No | ||
| totalCount | No | ||
| sortDirection | No |