sublime-mcp 1.13.0 → 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 +20 -3
- 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
|
}
|
|
@@ -4583,7 +4588,7 @@
|
|
|
4583
4588
|
},
|
|
4584
4589
|
{
|
|
4585
4590
|
"name": "ui_click",
|
|
4586
|
-
"description": "Click in one window of this Sublime Text process (Windows only) with the REAL mouse, because Sublime draws its own editor, command palette and popups and ignores posted mouse messages. x, y are pixels in the picture ui_screenshot returns for the same window (top-left is 0, 0). Because it moves the pointer of the person at the computer for a moment, it is REFUSED unless they have been idle for min_idle_s seconds (default 8), and refused unless the target window is the one under that point (another window in front would take the click). The pointer is restored afterwards. button: left (default) or right; double=true double-clicks. Prefer keys (ui_press_key), pick_quick_panel and editor commands when they can do the job.",
|
|
4591
|
+
"description": "Click in one window of this Sublime Text process (Windows only) with the REAL mouse, because Sublime draws its own editor, command palette and popups and ignores posted mouse messages. x, y are pixels in the picture ui_screenshot returns for the same window (top-left is 0, 0). Because it moves the pointer of the person at the computer for a moment, it is REFUSED unless they have been idle for min_idle_s seconds (default 8), and refused unless the target window is the one under that point (another window in front would take the click). The pointer is restored afterwards. To click inside an open popup menu or other native popup, pass that menu's own hwnd from list_native_windows (x, y then count from the menu's top-left corner; ui_screenshot of the menu hwnd shows it). Pass wait_idle_s to wait for a busy person instead of refusing. button: left (default) or right; double=true double-clicks. Prefer keys (ui_press_key), pick_quick_panel and editor commands when they can do the job.",
|
|
4587
4592
|
"inputSchema": {
|
|
4588
4593
|
"type": "object",
|
|
4589
4594
|
"properties": {
|
|
@@ -4615,6 +4620,10 @@
|
|
|
4615
4620
|
"type": "number",
|
|
4616
4621
|
"description": "Required seconds since the person last used the mouse or keyboard (default 8)."
|
|
4617
4622
|
},
|
|
4623
|
+
"wait_idle_s": {
|
|
4624
|
+
"type": "number",
|
|
4625
|
+
"description": "Wait up to this many seconds (max 120) for the person to stop typing or moving the mouse before giving up (default 0 = refuse at once). Use it instead of retrying when they are busy."
|
|
4626
|
+
},
|
|
4618
4627
|
"settle_ms": {
|
|
4619
4628
|
"type": "integer",
|
|
4620
4629
|
"description": "Milliseconds to wait after the click (default 250, max 5000)."
|
|
@@ -4659,6 +4668,10 @@
|
|
|
4659
4668
|
"min_idle_s": {
|
|
4660
4669
|
"type": "number",
|
|
4661
4670
|
"description": "Required seconds since the person last used the mouse or keyboard (default 8)."
|
|
4671
|
+
},
|
|
4672
|
+
"wait_idle_s": {
|
|
4673
|
+
"type": "number",
|
|
4674
|
+
"description": "Wait up to this many seconds (max 120) for the person to stop typing or moving the mouse before giving up (default 0 = refuse at once). Use it instead of retrying when they are busy."
|
|
4662
4675
|
}
|
|
4663
4676
|
},
|
|
4664
4677
|
"required": [
|
|
@@ -4703,7 +4716,11 @@
|
|
|
4703
4716
|
},
|
|
4704
4717
|
"min_idle_s": {
|
|
4705
4718
|
"type": "number",
|
|
4706
|
-
"description": "For method input: required seconds since the person last used the mouse or keyboard (default 8)."
|
|
4719
|
+
"description": "For method input: required seconds since the person last used the mouse or keyboard (default 8); real keys are never sent while they are typing."
|
|
4720
|
+
},
|
|
4721
|
+
"wait_idle_s": {
|
|
4722
|
+
"type": "number",
|
|
4723
|
+
"description": "Wait up to this many seconds (max 120) for the person to stop typing or moving the mouse before giving up (default 0 = refuse at once). Use it instead of retrying when they are busy."
|
|
4707
4724
|
},
|
|
4708
4725
|
"settle_ms": {
|
|
4709
4726
|
"type": "integer",
|
package/package.json
CHANGED