runVSCodeTask
Run a VS Code task by its name, wait for it to finish, and obtain the exit code. Use for build, test, or lint tasks with optional type filter and timeout.
Instructions
Run VS Code task by name. Waits for completion, returns exit code. For build/test/lint tasks.
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": {
"name": "<name>"
},
"name": "runVSCodeTask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the task to run | |
| type | No | Task type filter (e.g. 'shell', 'npm') to disambiguate tasks with the same name | |
| timeout | No | Seconds to wait for task completion (default: 60, max: 300) |