pg_diagnose
Runs static syntax, type, and lint diagnostics on Python or TypeScript targets, including custom commands, to surface code issues before verification.
Instructions
Run static syntax/type/lint diagnostics (Python AST, ruff, pyright, tsc, or custom diag_cmd).
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": "pg_diagnose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | Workspace slot name (optional if only one slot is open or `--slot` default is set). | |
| sub_id | No | Optional sub-worktree ID. | |
| targets | No | Optional relative file paths to check. |