watch_diagnostics
Monitor your project for errors in real-time. Start a watcher that reports file changes and diagnostics, or run a one-time scan for any language with a CLI linter.
Instructions
Real-time diagnostic watcher — monitors your project for errors as you code. Start the watcher, query current errors, or get a full scan.
Actions:
"start": Begin watching a project directory for file changes
"stop": Stop the watcher
"status": Get current watcher state and recent errors
"scan": Run a one-time full diagnostic scan (no persistent watching)
Works with: TypeScript, Swift, Python, ESLint, and any language with a CLI linter. Platform-agnostic: works with any editor that saves to disk.
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": {
"action": "<action>"
},
"name": "watch_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do: start watching, stop watching, check status, or run a one-time scan | |
| path | No | Absolute path to the project root (required for 'start' and 'scan') | |
| file | No | Optional: get diagnostics for a specific file only (with 'status') |