discover_specs
Scan a directory to identify OpenAPI spec files and static endpoint folders for mocking, returning a suggested input for local serving. Summarizes large directories with truncation and full file count.
Instructions
Scan a directory and report what mockzilla can do with it: top-level OpenAPI spec files (with title and endpoint count) plus any folders of static endpoint files mockzilla can serve. Returns a suggested_input the agent can hand directly to serve_locally. Use this when the user says 'I have a folder of specs/files, what's in it?' or 'mock this directory'. Scans one level only: on a tree of spec folders it names the subdirectories to recurse into. A big folder is summarised up to a cap, with truncated: true and the full spec_file_count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes |