closeTab
Closes a file's editor tab using its file path. Prompts to save unsaved changes before closing.
Instructions
Close editor tab by file path. Prompts to save if dirty. Requires ext.
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": {
"filePath": "<filePath>"
},
"name": "closeTab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File whose tab to close (absolute or workspace-relative) |