executeVSCodeCommand
Executes any VS Code command by its command ID, with optional arguments.
Instructions
Execute VS Code command by ID. Use listVSCodeCommands to discover IDs.
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": {
"command": "<command>"
},
"name": "executeVSCodeCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments to pass to the command | |
| command | Yes | VS Code command ID to execute |