sublime-mcp 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fallback-tools.json +6 -1
- package/package.json +1 -1
package/fallback-tools.json
CHANGED
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
436
|
"name": "close_file",
|
|
437
|
-
"description": "Close a file by path, or close the active file if path is omitted. Routed through Sublime's real close command (not a direct API call), so a host-side close-blocking hook gets a chance to run -- e.g. GhostShell's ai_terminal package refuses this outright (no dialog, just a no-op) for any ai_terminal tab, so calling this on one does nothing rather than closing it. Only ever targets an already-open view found by path, by name or index, or the current active view. Pass path for a saved file. For a tab with no path (unsaved buffer, scratch view) pass name (partial, case-insensitive match on the tab's title) or index (0-based, from get_open_files); with none of the three it closes whichever tab is active, so name the tab you mean. A name or index that matches nothing is an error and closes nothing. (run_command 'close' with scope='view' does not close a tab: use this tool.)",
|
|
437
|
+
"description": "Close a file by path, or close the active file if path is omitted. Routed through Sublime's real close command (not a direct API call), so a host-side close-blocking hook gets a chance to run -- e.g. GhostShell's ai_terminal package refuses this outright (no dialog, just a no-op) for any ai_terminal tab, so calling this on one does nothing rather than closing it. Only ever targets an already-open view found by path, by name or index, or the current active view. Pass path for a saved file. For a tab with no path (unsaved buffer, scratch view) pass name (partial, case-insensitive match on the tab's title) or index (0-based, from get_open_files); with none of the three it closes whichever tab is active, so name the tab you mean. A name or index that matches nothing is an error and closes nothing. A tab with unsaved edits normally raises Sublime's native \"Save Changes?\" dialog, which blocks the main thread until someone answers it; pass discard=true to throw the unsaved edits away and close at once (the result then says discarded). (run_command 'close' with scope='view' does not close a tab: use this tool.)",
|
|
438
438
|
"inputSchema": {
|
|
439
439
|
"type": "object",
|
|
440
440
|
"properties": {
|
|
@@ -449,6 +449,11 @@
|
|
|
449
449
|
"index": {
|
|
450
450
|
"type": "integer",
|
|
451
451
|
"default": -1
|
|
452
|
+
},
|
|
453
|
+
"discard": {
|
|
454
|
+
"type": "boolean",
|
|
455
|
+
"default": false,
|
|
456
|
+
"description": "Close without saving: unsaved edits are lost. Default false (Sublime asks)."
|
|
452
457
|
}
|
|
453
458
|
}
|
|
454
459
|
}
|
package/package.json
CHANGED