sublime-mcp 1.12.0 → 1.12.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 +75 -4
- package/package.json +1 -1
package/fallback-tools.json
CHANGED
|
@@ -354,6 +354,30 @@
|
|
|
354
354
|
"properties": {}
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
|
+
{
|
|
358
|
+
"name": "click_menu_item",
|
|
359
|
+
"description": "Run an installed menu item by its caption path, e.g. path='Tools > Command Palette...' (the end of the path is enough if it is unique). Reads the *.sublime-menu resources and runs the item's command and args, as a click would; the native menu is never opened. Most built-in items have no caption in the menu file; address them by command name, e.g. 'Selection > select_all'. Errors with the candidates if several items match. The result names the scope used (window, text or application); pass scope to override it for built-in commands.",
|
|
360
|
+
"inputSchema": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"path": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "Captions joined by '>', e.g. 'Tools > Command Palette...'."
|
|
366
|
+
},
|
|
367
|
+
"scope": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"enum": [
|
|
370
|
+
"window",
|
|
371
|
+
"text",
|
|
372
|
+
"application"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"path"
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
},
|
|
357
381
|
{
|
|
358
382
|
"name": "clone_file",
|
|
359
383
|
"description": "Create a clone of the active view (opens the same file in a new tab, sharing the buffer).",
|
|
@@ -846,7 +870,7 @@
|
|
|
846
870
|
"button",
|
|
847
871
|
"close"
|
|
848
872
|
],
|
|
849
|
-
"description": "What to do (default: cancel)."
|
|
873
|
+
"description": "What to do (default: cancel, or button when 'button' is given)."
|
|
850
874
|
},
|
|
851
875
|
"button": {
|
|
852
876
|
"type": "string",
|
|
@@ -1490,7 +1514,7 @@
|
|
|
1490
1514
|
},
|
|
1491
1515
|
{
|
|
1492
1516
|
"name": "get_console",
|
|
1493
|
-
"description": "Read Sublime Text's built-in console. mode='auto' prefers a complete visible-console capture and falls back to the reload-safe prospective capture; mode='visible' requires a complete capture; mode='captured' is non-invasive but contains only messages observed since capture began. Results include source and complete metadata.",
|
|
1517
|
+
"description": "Read Sublime Text's built-in console. mode='auto' prefers a complete visible-console capture and falls back to the reload-safe prospective capture; mode='visible' requires a complete capture; mode='captured' is non-invasive but contains only messages observed since capture began. Results include source and complete metadata. The visible capture clicks in the console and copies it, so it only runs when this Sublime window is in front (otherwise it fails at once and changes nothing); force_focus=true raises it first, which can crash a portable Sublime Text. tail=N keeps the last N entries (captured) or the last N lines (visible; the result then has lines_total and truncated); tail=0 returns everything.",
|
|
1494
1518
|
"inputSchema": {
|
|
1495
1519
|
"type": "object",
|
|
1496
1520
|
"properties": {
|
|
@@ -1506,6 +1530,10 @@
|
|
|
1506
1530
|
"tail": {
|
|
1507
1531
|
"type": "integer",
|
|
1508
1532
|
"default": 200
|
|
1533
|
+
},
|
|
1534
|
+
"force_focus": {
|
|
1535
|
+
"type": "boolean",
|
|
1536
|
+
"default": false
|
|
1509
1537
|
}
|
|
1510
1538
|
}
|
|
1511
1539
|
}
|
|
@@ -1577,10 +1605,15 @@
|
|
|
1577
1605
|
},
|
|
1578
1606
|
{
|
|
1579
1607
|
"name": "get_help",
|
|
1580
|
-
"description": "Return the Agent Guide (AGENT_GUIDE.md) with detailed instructions on how to use sublime-mcp tools correctly. Call this first if you are unsure how to save files, close tabs, or use eval_python.",
|
|
1608
|
+
"description": "Return the Agent Guide (AGENT_GUIDE.md) with detailed instructions on how to use sublime-mcp tools correctly. Call this first if you are unsure how to save files, close tabs, or use eval_python. The full guide is about 12 KB; section=<words from a heading> returns only the matching section(s), and every result lists the section headings.",
|
|
1581
1609
|
"inputSchema": {
|
|
1582
1610
|
"type": "object",
|
|
1583
|
-
"properties": {
|
|
1611
|
+
"properties": {
|
|
1612
|
+
"section": {
|
|
1613
|
+
"type": "string",
|
|
1614
|
+
"description": "Return only the sections whose heading contains this text, e.g. 'console'."
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1584
1617
|
}
|
|
1585
1618
|
},
|
|
1586
1619
|
{
|
|
@@ -1672,6 +1705,27 @@
|
|
|
1672
1705
|
"properties": {}
|
|
1673
1706
|
}
|
|
1674
1707
|
},
|
|
1708
|
+
{
|
|
1709
|
+
"name": "get_quick_panel",
|
|
1710
|
+
"description": "List the items of the quick panel that a package opened with window.show_quick_panel (e.g. the Install Package picker), plus its flags and preselected index. Big pickers hold thousands of items, so the result is a page: pass text to keep only items whose first line contains it, limit (default 100, at most 1000) and offset; the result gives total, matched and the original indexes of the items returned. Only sees panels opened by packages in the same plugin host as sublime-mcp; the command palette, Goto Anything and panels from the other host are not visible and give an error.",
|
|
1711
|
+
"inputSchema": {
|
|
1712
|
+
"type": "object",
|
|
1713
|
+
"properties": {
|
|
1714
|
+
"text": {
|
|
1715
|
+
"type": "string",
|
|
1716
|
+
"description": "Keep only items whose first line contains this."
|
|
1717
|
+
},
|
|
1718
|
+
"limit": {
|
|
1719
|
+
"type": "integer",
|
|
1720
|
+
"description": "Page size (default 100, at most 1000)."
|
|
1721
|
+
},
|
|
1722
|
+
"offset": {
|
|
1723
|
+
"type": "integer",
|
|
1724
|
+
"description": "Skip this many matching items (default 0)."
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1675
1729
|
{
|
|
1676
1730
|
"name": "get_scope_at_cursor",
|
|
1677
1731
|
"description": "Return the full syntax scope string at the cursor position.",
|
|
@@ -2707,6 +2761,23 @@
|
|
|
2707
2761
|
"properties": {}
|
|
2708
2762
|
}
|
|
2709
2763
|
},
|
|
2764
|
+
{
|
|
2765
|
+
"name": "pick_quick_panel",
|
|
2766
|
+
"description": "Pick an item of the quick panel shown by get_quick_panel: by index, or by text (case-insensitive match on the item's first line; must match exactly one item). index -1 cancels. Closes the panel and runs the package's own selection callback.",
|
|
2767
|
+
"inputSchema": {
|
|
2768
|
+
"type": "object",
|
|
2769
|
+
"properties": {
|
|
2770
|
+
"index": {
|
|
2771
|
+
"type": "integer",
|
|
2772
|
+
"description": "Item index, or -1 to cancel."
|
|
2773
|
+
},
|
|
2774
|
+
"text": {
|
|
2775
|
+
"type": "string",
|
|
2776
|
+
"description": "Text of the item to pick."
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2710
2781
|
{
|
|
2711
2782
|
"name": "play_macro",
|
|
2712
2783
|
"description": "Alias of run_macro \u2014 play back the most recently recorded macro.",
|
package/package.json
CHANGED