Find Doc by Title
find_doc_by_titleRetrieve all documents with an exact title, returning up to 200 matches. Case-sensitive by default; use caseInsensitive for case-insensitive lookup. Reads workspace metadata for quick resolution.
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). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| matches | Yes | ||
| truncated | Yes | ||
| caseInsensitive | Yes | ||
| workspaceDocCount | Yes |