Search Documents
search_documents()
Search your documents by title prefix and/or tag. Results are scoped to the authenticated user.| Parameter | Type | Required | Description |
|---|---|---|---|
query | str | No* | Title prefix to search for (case-insensitive) |
tag | str | No* | Exact tag to match |
folder_id | str | No | Folder ID to scope results |
limit | int | No | Max results to return (default: 20, max: 50) |
offset | int | No | Number of results to skip for pagination |
At least one of
query or tag is required.list[SearchResult]
Raises: ValidationError if neither query nor tag is provided.
SearchResult
Each result contains document metadata (no blocks — useget_document() to fetch full content).
Pagination
Uselimit and offset for paginating through results: