sublime-mcp 1.12.3 → 1.12.4
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 +15 -3
- package/package.json +1 -1
package/fallback-tools.json
CHANGED
|
@@ -434,13 +434,21 @@
|
|
|
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 or the current active view
|
|
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.)",
|
|
438
438
|
"inputSchema": {
|
|
439
439
|
"type": "object",
|
|
440
440
|
"properties": {
|
|
441
441
|
"path": {
|
|
442
442
|
"type": "string",
|
|
443
443
|
"default": ""
|
|
444
|
+
},
|
|
445
|
+
"name": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"default": ""
|
|
448
|
+
},
|
|
449
|
+
"index": {
|
|
450
|
+
"type": "integer",
|
|
451
|
+
"default": -1
|
|
444
452
|
}
|
|
445
453
|
}
|
|
446
454
|
}
|
|
@@ -2604,7 +2612,7 @@
|
|
|
2604
2612
|
},
|
|
2605
2613
|
{
|
|
2606
2614
|
"name": "open_folder",
|
|
2607
|
-
"description": "Open a folder in a
|
|
2615
|
+
"description": "Open a folder in a NEW window (makes the window and sets the folder as its project data; returns window_id and folders). Pass 'path' (an existing folder).",
|
|
2608
2616
|
"inputSchema": {
|
|
2609
2617
|
"type": "object",
|
|
2610
2618
|
"properties": {
|
|
@@ -3421,7 +3429,7 @@
|
|
|
3421
3429
|
},
|
|
3422
3430
|
{
|
|
3423
3431
|
"name": "run_command",
|
|
3424
|
-
"description": "Run any Sublime Text command. scope='window' (default) or 'view'.\nFor scope='view'/'text', optionally target a specific tab with name (partial, case-insensitive) or index (0-based, from get_open_files) instead of whatever tab happens to be globally focused -- important when another agent/session may be sharing this Sublime instance.",
|
|
3432
|
+
"description": "Run any Sublime Text command. scope='window' (default) or 'view'.\nFor scope='view'/'text', optionally target a specific tab with name (partial, case-insensitive) or index (0-based, from get_open_files) instead of whatever tab happens to be globally focused -- important when another agent/session may be sharing this Sublime instance.\nok means the command was dispatched, not that it did anything: a command that opens a dialog often does so a moment after this returns. Pass settle_ms (for example 300) to wait up to that long and get any dialog that appeared in the result as 'dialogs' (Windows; same fields as list_native_windows).",
|
|
3425
3433
|
"inputSchema": {
|
|
3426
3434
|
"type": "object",
|
|
3427
3435
|
"properties": {
|
|
@@ -3442,6 +3450,10 @@
|
|
|
3442
3450
|
"index": {
|
|
3443
3451
|
"type": "integer",
|
|
3444
3452
|
"default": -1
|
|
3453
|
+
},
|
|
3454
|
+
"settle_ms": {
|
|
3455
|
+
"type": "integer",
|
|
3456
|
+
"default": 0
|
|
3445
3457
|
}
|
|
3446
3458
|
},
|
|
3447
3459
|
"required": [
|
package/package.json
CHANGED