Find Doc by Title
find_doc_by_titleSearch for documents by exact title in an AFFiNE workspace. Returns up to 200 matches, defaulting to case-sensitive matching. Optionally enable case-insensitive search.
Instructions
Resolve docs by exact title. Returns ALL matches up to limit (callers handle ambiguity). Case-sensitive by default; pass caseInsensitive: true to fold case. Reads workspace metadata — fast, no per-doc fetch. Unlike search_docs (which is always case-insensitive and capped at limit 20), this tool defaults to case-sensitive matching and returns up to limit matches (default 50, max 200). Prefer this over search_docs when you know the exact title and want every match. Returns: { query, caseInsensitive, matches: [{ id, title, createdAt, updatedAt, inTrash }], workspaceDocCount, truncated }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | Workspace ID (optional if AFFINE_WORKSPACE_ID is set). | |
| title | Yes | The exact title to match. | |
| caseInsensitive | No | If true, fold case for comparison (default: false). | |
| limit | No | Max matches to return (default: 50). |