Discover Scrivener Projects
discover_projectsScan default directories for Scrivener projects and return their paths, enabling you to locate a project by name instead of requiring a full file path.
Instructions
Scan common locations (Documents, Desktop, and iCloud Mobile Documents) for Scrivener projects and return the paths of every .scriv folder found, searching up to three levels deep. Use this when the user refers to their project by name rather than path ("open my novel"): present the results and pass the chosen path to open_project. Does not open anything itself. Returns a list of project paths, or a message if none are found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchPath | No | Optional extra directory to search in addition to the default locations, e.g. an external drive or a custom projects folder. Absolute or ~-relative path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of projects found. | |
| projects | Yes | Absolute paths of the .scriv projects found. |