| name | json-schema-lookup |
| description | Guidelines for querying schemastore.org. Use when you need to validate or discover options for config files relating to popular open source projects. |
| allowed-tools | WebFetch Bash(curl *) Bash(jq *) Bash(yq *) Bash(grep *) Bash(head *) Bash(less *) |
JSON Schema Lookup via SchemaStore
Query schemastore.org's catalog of public configuration file schemas to validate structure, discover options, and check allowed values.
API
- Catalog:
https://www.schemastore.org/api/json/catalog.json
- Structure:
{ "schemas": [{ "name", "description", "fileMatch", "url", "versions"? }] }
- Individual schemas: Fetch the
url from the matching catalog entry
Workflow
1. Find the schema
Search the catalog by name or filename pattern:
curl -s https://www.schemastore.org/api/json/catalog.json | jq '.schemas[] | select(.name | test("tsconfig"; "i")) | {name, url, fileMatch}'
curl -s https://www.schemastore.org/api/json/catalog.json | jq '.schemas[] | select(.fileMatch[]? | test("package\\.json")) | {name, url}'
Alternatively, use WebFetch on the catalog URL and ask for the relevant entry.
2. Fetch and inspect the schema
curl -s SCHEMA_URL | jq
curl -s SCHEMA_URL | jq
curl -s SCHEMA_URL | jq
curl -s SCHEMA_URL | jq .