compile_typescript
Compile TypeScript files or full projects to JavaScript, with watch mode and source maps, so AI assistants can build, check, and debug TypeScript code.
Instructions
Compile TypeScript file(s) to JavaScript with full project support, watch mode, and source maps
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compile_typescript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch | No | Enable watch mode for continuous compilation on file changes | |
| filePath | No | Path to TypeScript file to compile | |
| outputDir | No | Output directory for compiled JavaScript files | |
| sourceMap | No | Generate source maps for debugging | |
| projectPath | No | Path to TypeScript project directory with tsconfig.json |