Search Documents by Title
search_docsSearch documents by title using workspace metadata to quickly find and access docs with their IDs, URLs, and trash status.
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.
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). | |
| 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). |