Search Documents
searchSearch documents in an open Scrivener project for matching content or titles. Get relevance-ranked snippets to quickly find relevant resources.
Instructions
Search the open project and return matching documents with relevance-ranked snippets. By default performs an intelligent full-text/semantic search of document content; set field to "title" for a fast case-insensitive title lookup, or scope to "trash" to search only trashed documents. For meaning-based "find passages about X" queries use semantic_search; to find every occurrence of a specific name or term use find_mentions. Requires an open project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | "content" (default) searches document body text; "title" matches document titles only (fast, case-insensitive substring). | |
| query | Yes | ||
| regex | No | Treat the query as a regular expression. Default false. Content search only. | |
| scope | No | "active" (default) searches the live binder; "trash" searches only trashed documents. | |
| searchIn | No | Additional metadata fields to include in content search, e.g. "synopsis", "notes". | |
| caseSensitive | No | Match case exactly. Default false. Applies to content search. |