read_schema_from_file
Identify the Zod schema defined in a TypeScript or JavaScript file by specifying the file path and optionally the export name.
Instructions
Read a Zod schema directly from a TypeScript or JavaScript file. Use to answer: what schema is defined in this file?
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "read_schema_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .ts or .js file containing the Zod schema | |
| export_name | No | Name of the exported schema variable. If omitted, extracts the first Zod expression found. |