vscode_execute_command
Executes built-in or extension VS Code commands by ID, optionally with arguments, to automate editor actions and extension workflows.
Instructions
Execute any built-in or extension VS Code command ID (e.g., "editor.action.formatDocument", "cmake.build", "workbench.action.files.saveAll").
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": "vscode_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Args | No | Optional array of arguments passed to the command. | |
| Command | Yes | VS Code command identifier. |