Discover Scrivener Projects
discover_projectsLocate Scrivener projects by scanning default directories for .scriv folders, then return their paths so you can open the correct project by name.
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. |