sublime-mcp 1.12.4 → 1.13.0
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 +215 -2
- package/package.json +1 -1
package/fallback-tools.json
CHANGED
|
@@ -1734,6 +1734,10 @@
|
|
|
1734
1734
|
"offset": {
|
|
1735
1735
|
"type": "integer",
|
|
1736
1736
|
"description": "Skip this many matching items (default 0)."
|
|
1737
|
+
},
|
|
1738
|
+
"wait_ms": {
|
|
1739
|
+
"type": "integer",
|
|
1740
|
+
"description": "Wait up to this long (at most 60000) for the panel to appear; use 15000 for Package Control's Install Package list, which loads for a while after Enter (default 0 = no waiting)."
|
|
1737
1741
|
}
|
|
1738
1742
|
}
|
|
1739
1743
|
}
|
|
@@ -1819,10 +1823,16 @@
|
|
|
1819
1823
|
},
|
|
1820
1824
|
{
|
|
1821
1825
|
"name": "get_sheets",
|
|
1822
|
-
"description": "List ALL sheets (tabs) in the current window by index, including images and untitled buffers.\nReturns identity, group position, selection/focus state, type, path, name, and dirty state.\nUse index with get_sheet_content to read a specific tab.",
|
|
1826
|
+
"description": "List ALL sheets (tabs) in the current window by index, including images and untitled buffers.\nReturns identity, group position, selection/focus state, type, path, name, and dirty state.\nUse index with get_sheet_content to read a specific tab.\nEvery tab also carries its full settings (over 100 keys); pass settings=false to leave them out.",
|
|
1823
1827
|
"inputSchema": {
|
|
1824
1828
|
"type": "object",
|
|
1825
|
-
"properties": {
|
|
1829
|
+
"properties": {
|
|
1830
|
+
"settings": {
|
|
1831
|
+
"type": "boolean",
|
|
1832
|
+
"default": true,
|
|
1833
|
+
"description": "Include each tab's full settings dict (default true). false gives a compact list."
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1826
1836
|
}
|
|
1827
1837
|
},
|
|
1828
1838
|
{
|
|
@@ -1906,6 +1916,26 @@
|
|
|
1906
1916
|
}
|
|
1907
1917
|
}
|
|
1908
1918
|
},
|
|
1919
|
+
{
|
|
1920
|
+
"name": "get_view_regions",
|
|
1921
|
+
"description": "Return the regions a plugin stored in a view under a region key (view.add_regions): begin, end and the first 80 characters of each. Sublime cannot list the keys, so name them: one key or several separated by commas (for example 'ifdef,ifdeferror' for the Simple Ifdef package). Use it to check what a highlighting plugin drew without a screenshot. Omit name for the active view.",
|
|
1922
|
+
"inputSchema": {
|
|
1923
|
+
"type": "object",
|
|
1924
|
+
"properties": {
|
|
1925
|
+
"key": {
|
|
1926
|
+
"type": "string",
|
|
1927
|
+
"description": "Region key, or several separated by commas."
|
|
1928
|
+
},
|
|
1929
|
+
"name": {
|
|
1930
|
+
"type": "string",
|
|
1931
|
+
"default": ""
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
"required": [
|
|
1935
|
+
"key"
|
|
1936
|
+
]
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1909
1939
|
{
|
|
1910
1940
|
"name": "get_view_size",
|
|
1911
1941
|
"description": "Return the total character count of any open tab by name (partial match, case-insensitive).\nUse before get_view_chars to compute offsets. Omit name for the active view.",
|
|
@@ -2786,6 +2816,10 @@
|
|
|
2786
2816
|
"text": {
|
|
2787
2817
|
"type": "string",
|
|
2788
2818
|
"description": "Text of the item to pick."
|
|
2819
|
+
},
|
|
2820
|
+
"wait_ms": {
|
|
2821
|
+
"type": "integer",
|
|
2822
|
+
"description": "Wait up to this long (at most 60000) for the panel to appear (15000 for the Install Package list); default 0."
|
|
2789
2823
|
}
|
|
2790
2824
|
}
|
|
2791
2825
|
}
|
|
@@ -4547,6 +4581,185 @@
|
|
|
4547
4581
|
"properties": {}
|
|
4548
4582
|
}
|
|
4549
4583
|
},
|
|
4584
|
+
{
|
|
4585
|
+
"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.",
|
|
4587
|
+
"inputSchema": {
|
|
4588
|
+
"type": "object",
|
|
4589
|
+
"properties": {
|
|
4590
|
+
"x": {
|
|
4591
|
+
"type": "integer",
|
|
4592
|
+
"description": "Pixels from the left edge of the window picture."
|
|
4593
|
+
},
|
|
4594
|
+
"y": {
|
|
4595
|
+
"type": "integer",
|
|
4596
|
+
"description": "Pixels from the top edge of the window picture."
|
|
4597
|
+
},
|
|
4598
|
+
"hwnd": {
|
|
4599
|
+
"type": "integer",
|
|
4600
|
+
"description": "Window handle from list_native_windows (default: first editor window)."
|
|
4601
|
+
},
|
|
4602
|
+
"button": {
|
|
4603
|
+
"type": "string",
|
|
4604
|
+
"enum": [
|
|
4605
|
+
"left",
|
|
4606
|
+
"right"
|
|
4607
|
+
],
|
|
4608
|
+
"description": "Mouse button (default left)."
|
|
4609
|
+
},
|
|
4610
|
+
"double": {
|
|
4611
|
+
"type": "boolean",
|
|
4612
|
+
"description": "Double-click (default false)."
|
|
4613
|
+
},
|
|
4614
|
+
"min_idle_s": {
|
|
4615
|
+
"type": "number",
|
|
4616
|
+
"description": "Required seconds since the person last used the mouse or keyboard (default 8)."
|
|
4617
|
+
},
|
|
4618
|
+
"settle_ms": {
|
|
4619
|
+
"type": "integer",
|
|
4620
|
+
"description": "Milliseconds to wait after the click (default 250, max 5000)."
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
4623
|
+
"required": [
|
|
4624
|
+
"x",
|
|
4625
|
+
"y"
|
|
4626
|
+
]
|
|
4627
|
+
}
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
"name": "ui_hover",
|
|
4631
|
+
"description": "Hold the REAL mouse pointer over a point of one window of this Sublime Text process (Windows only) so hover popups and tooltips appear, optionally taking a picture while it is there (screenshot=true saves it and returns the path), then put the pointer back. x, y are pixels in the picture ui_screenshot returns. Same safety gates as ui_click: refused unless the person at the computer has been idle for min_idle_s seconds (default 8) and the target window is the one under that point. dwell_ms (default 900, max 5000) is how long to wait before the picture.",
|
|
4632
|
+
"inputSchema": {
|
|
4633
|
+
"type": "object",
|
|
4634
|
+
"properties": {
|
|
4635
|
+
"x": {
|
|
4636
|
+
"type": "integer",
|
|
4637
|
+
"description": "Pixels from the left edge of the window picture."
|
|
4638
|
+
},
|
|
4639
|
+
"y": {
|
|
4640
|
+
"type": "integer",
|
|
4641
|
+
"description": "Pixels from the top edge of the window picture."
|
|
4642
|
+
},
|
|
4643
|
+
"hwnd": {
|
|
4644
|
+
"type": "integer",
|
|
4645
|
+
"description": "Window handle from list_native_windows (default: first editor window)."
|
|
4646
|
+
},
|
|
4647
|
+
"screenshot": {
|
|
4648
|
+
"type": "boolean",
|
|
4649
|
+
"description": "Take a picture while the pointer is there and return its path."
|
|
4650
|
+
},
|
|
4651
|
+
"dwell_ms": {
|
|
4652
|
+
"type": "integer",
|
|
4653
|
+
"description": "Milliseconds the pointer rests before the picture (default 900)."
|
|
4654
|
+
},
|
|
4655
|
+
"hold_ms": {
|
|
4656
|
+
"type": "integer",
|
|
4657
|
+
"description": "Extra milliseconds to keep the pointer there afterwards (default 0)."
|
|
4658
|
+
},
|
|
4659
|
+
"min_idle_s": {
|
|
4660
|
+
"type": "number",
|
|
4661
|
+
"description": "Required seconds since the person last used the mouse or keyboard (default 8)."
|
|
4662
|
+
}
|
|
4663
|
+
},
|
|
4664
|
+
"required": [
|
|
4665
|
+
"x",
|
|
4666
|
+
"y"
|
|
4667
|
+
]
|
|
4668
|
+
}
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
"name": "ui_press_key",
|
|
4672
|
+
"description": "Send one key press to one window of this Sublime Text process (Windows only), for example Return in the command palette or Down in a quick panel. key: Return, Escape, Tab, Up, Down, Left, Right, Home, End, PageUp, PageDown, Delete, Backspace, Space, F1-F24, or a single character. mods: any of ctrl, shift, alt. method 'post' (default) posts the key to the window without moving focus; 'input' brings the window to the front, sends real input, then restores the previous foreground window. Only windows of Sublime Text itself accept input.",
|
|
4673
|
+
"inputSchema": {
|
|
4674
|
+
"type": "object",
|
|
4675
|
+
"properties": {
|
|
4676
|
+
"key": {
|
|
4677
|
+
"type": "string",
|
|
4678
|
+
"description": "Key name or single character."
|
|
4679
|
+
},
|
|
4680
|
+
"mods": {
|
|
4681
|
+
"type": "array",
|
|
4682
|
+
"items": {
|
|
4683
|
+
"type": "string",
|
|
4684
|
+
"enum": [
|
|
4685
|
+
"ctrl",
|
|
4686
|
+
"shift",
|
|
4687
|
+
"alt"
|
|
4688
|
+
]
|
|
4689
|
+
},
|
|
4690
|
+
"description": "Modifier keys held during the press."
|
|
4691
|
+
},
|
|
4692
|
+
"hwnd": {
|
|
4693
|
+
"type": "integer",
|
|
4694
|
+
"description": "Window handle from list_native_windows (default: first editor window)."
|
|
4695
|
+
},
|
|
4696
|
+
"method": {
|
|
4697
|
+
"type": "string",
|
|
4698
|
+
"enum": [
|
|
4699
|
+
"post",
|
|
4700
|
+
"input"
|
|
4701
|
+
],
|
|
4702
|
+
"description": "post (default, no focus change, no modifier keys) or input (real keys, carry modifiers; needs the window in front and activates it with a real title-bar click only when the person is idle)."
|
|
4703
|
+
},
|
|
4704
|
+
"min_idle_s": {
|
|
4705
|
+
"type": "number",
|
|
4706
|
+
"description": "For method input: required seconds since the person last used the mouse or keyboard (default 8)."
|
|
4707
|
+
},
|
|
4708
|
+
"settle_ms": {
|
|
4709
|
+
"type": "integer",
|
|
4710
|
+
"description": "Milliseconds to wait after the key so it has been handled (default 150, max 5000)."
|
|
4711
|
+
}
|
|
4712
|
+
},
|
|
4713
|
+
"required": [
|
|
4714
|
+
"key"
|
|
4715
|
+
]
|
|
4716
|
+
}
|
|
4717
|
+
},
|
|
4718
|
+
{
|
|
4719
|
+
"name": "ui_screenshot",
|
|
4720
|
+
"description": "Take a picture of one window of this Sublime Text process (Windows only). The PNG is saved to a file and its path is returned (open it with the Read tool); inline=true returns the image itself. Works for a window that is behind others or not focused, and for dialogs. hwnd comes from list_native_windows (default: the first editor window). Only windows of Sublime Text itself can be captured, never another program.",
|
|
4721
|
+
"inputSchema": {
|
|
4722
|
+
"type": "object",
|
|
4723
|
+
"properties": {
|
|
4724
|
+
"hwnd": {
|
|
4725
|
+
"type": "integer",
|
|
4726
|
+
"description": "Window handle from list_native_windows (default: first editor window)."
|
|
4727
|
+
},
|
|
4728
|
+
"inline": {
|
|
4729
|
+
"type": "boolean",
|
|
4730
|
+
"description": "Return the image itself instead of a file path (default false)."
|
|
4731
|
+
},
|
|
4732
|
+
"settle_ms": {
|
|
4733
|
+
"type": "integer",
|
|
4734
|
+
"description": "Milliseconds to wait before the picture so earlier input has been handled (default 200, max 5000)."
|
|
4735
|
+
}
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4738
|
+
},
|
|
4739
|
+
{
|
|
4740
|
+
"name": "ui_type_text",
|
|
4741
|
+
"description": "Type text into one window of this Sublime Text process (Windows only), for example into the command palette's search box or a quick panel's filter, without moving focus. A newline is sent as Return. At most 2000 characters per call. Only windows of Sublime Text itself accept input.",
|
|
4742
|
+
"inputSchema": {
|
|
4743
|
+
"type": "object",
|
|
4744
|
+
"properties": {
|
|
4745
|
+
"text": {
|
|
4746
|
+
"type": "string",
|
|
4747
|
+
"description": "The text to type."
|
|
4748
|
+
},
|
|
4749
|
+
"settle_ms": {
|
|
4750
|
+
"type": "integer",
|
|
4751
|
+
"description": "Milliseconds to wait after typing so it has been handled (default 150, max 5000)."
|
|
4752
|
+
},
|
|
4753
|
+
"hwnd": {
|
|
4754
|
+
"type": "integer",
|
|
4755
|
+
"description": "Window handle from list_native_windows (default: first editor window)."
|
|
4756
|
+
}
|
|
4757
|
+
},
|
|
4758
|
+
"required": [
|
|
4759
|
+
"text"
|
|
4760
|
+
]
|
|
4761
|
+
}
|
|
4762
|
+
},
|
|
4550
4763
|
{
|
|
4551
4764
|
"name": "undo",
|
|
4552
4765
|
"description": "Undo the last edit in the active file.",
|
package/package.json
CHANGED