sublime-mcp 1.12.2 → 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 +20 -4
- 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
|
}
|
|
@@ -1663,13 +1671,17 @@
|
|
|
1663
1671
|
},
|
|
1664
1672
|
{
|
|
1665
1673
|
"name": "get_output_panel",
|
|
1666
|
-
"description": "Return the text content of an output panel.\nIf name is omitted, read the active output panel. Use name='exec' for build output.\nUse name='Console' to read Sublime's built-in console through the best available backend.",
|
|
1674
|
+
"description": "Return the text content of an output panel.\nIf name is omitted, read the active output panel. Use name='exec' for build output.\nUse name='Console' to read Sublime's built-in console through the best available backend; for the console, force_focus=true raises the window first (needed for a complete read when the window is not in front; can crash a portable Sublime Text).",
|
|
1667
1675
|
"inputSchema": {
|
|
1668
1676
|
"type": "object",
|
|
1669
1677
|
"properties": {
|
|
1670
1678
|
"name": {
|
|
1671
1679
|
"type": "string",
|
|
1672
1680
|
"default": ""
|
|
1681
|
+
},
|
|
1682
|
+
"force_focus": {
|
|
1683
|
+
"type": "boolean",
|
|
1684
|
+
"default": false
|
|
1673
1685
|
}
|
|
1674
1686
|
}
|
|
1675
1687
|
}
|
|
@@ -2600,7 +2612,7 @@
|
|
|
2600
2612
|
},
|
|
2601
2613
|
{
|
|
2602
2614
|
"name": "open_folder",
|
|
2603
|
-
"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).",
|
|
2604
2616
|
"inputSchema": {
|
|
2605
2617
|
"type": "object",
|
|
2606
2618
|
"properties": {
|
|
@@ -3417,7 +3429,7 @@
|
|
|
3417
3429
|
},
|
|
3418
3430
|
{
|
|
3419
3431
|
"name": "run_command",
|
|
3420
|
-
"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).",
|
|
3421
3433
|
"inputSchema": {
|
|
3422
3434
|
"type": "object",
|
|
3423
3435
|
"properties": {
|
|
@@ -3438,6 +3450,10 @@
|
|
|
3438
3450
|
"index": {
|
|
3439
3451
|
"type": "integer",
|
|
3440
3452
|
"default": -1
|
|
3453
|
+
},
|
|
3454
|
+
"settle_ms": {
|
|
3455
|
+
"type": "integer",
|
|
3456
|
+
"default": 0
|
|
3441
3457
|
}
|
|
3442
3458
|
},
|
|
3443
3459
|
"required": [
|
package/package.json
CHANGED