Find Schema For
find_schema_forMatch a config filename against the SchemaStore catalog (schemastore.org) to find which JSON Schemas declare a fileMatch glob covering it, for example package.json, tsconfig.json, or .github/workflows/ci.yml. Returns the matching catalog entries with schema name, description, fileMatch globs, and the json.schemastore.org schema URL. Answers which JSON Schema validates a given config file so an editor or linter can be pointed at it.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "package.json"
},
"name": "find_schema_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | e.g. package.json, .github/workflows/ci.yml |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matches | Yes | Catalog entries with matching fileMatch globs | |
| filename | Yes | Input filename searched |