Find Doc by Title
find_doc_by_titleFind all documents matching an exact title in an AFFiNE workspace. Supports case-sensitive or case-insensitive matching and returns metadata for each match.
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 |
|---|---|---|---|
| limit | No | Max matches to return (default: 50). | |
| title | Yes | The exact title to match. | |
| workspaceId | No | Workspace ID (optional if AFFINE_WORKSPACE_ID is set). | |
| caseInsensitive | No | If true, fold case for comparison (default: false). |