Search Documents by Title
search_docsSearch workspace documents by title and optional tag using metadata, returning doc IDs, titles, direct URLs, trash status, and pagination state.
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, plus offset/limit pagination state (hasMore, truncated, and nextOffset).
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. | |
| offset | No | Zero-based result offset for paging through matches (default: 0). | |
| 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 |
|---|---|---|---|
| ok | No | ||
| tag | No | ||
| code | No | ||
| error | No | ||
| limit | No | ||
| query | No | ||
| offset | No | ||
| sortBy | No | ||
| details | No | ||
| hasMore | No | ||
| results | No | ||
| causeCode | No | ||
| matchMode | No | ||
| retryable | No | ||
| truncated | No | ||
| nextOffset | No | ||
| totalCount | No | ||
| sortDirection | No | ||
| recoveryGuidance | No |