sublime-mcp 1.12.5 → 1.13.1

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.
Files changed (2) hide show
  1. package/fallback-tools.json +191 -0
  2. package/package.json +1 -1
@@ -4581,6 +4581,197 @@
4581
4581
  "properties": {}
4582
4582
  }
4583
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. 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
+ "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
+ "wait_idle_s": {
4619
+ "type": "number",
4620
+ "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."
4621
+ },
4622
+ "settle_ms": {
4623
+ "type": "integer",
4624
+ "description": "Milliseconds to wait after the click (default 250, max 5000)."
4625
+ }
4626
+ },
4627
+ "required": [
4628
+ "x",
4629
+ "y"
4630
+ ]
4631
+ }
4632
+ },
4633
+ {
4634
+ "name": "ui_hover",
4635
+ "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.",
4636
+ "inputSchema": {
4637
+ "type": "object",
4638
+ "properties": {
4639
+ "x": {
4640
+ "type": "integer",
4641
+ "description": "Pixels from the left edge of the window picture."
4642
+ },
4643
+ "y": {
4644
+ "type": "integer",
4645
+ "description": "Pixels from the top edge of the window picture."
4646
+ },
4647
+ "hwnd": {
4648
+ "type": "integer",
4649
+ "description": "Window handle from list_native_windows (default: first editor window)."
4650
+ },
4651
+ "screenshot": {
4652
+ "type": "boolean",
4653
+ "description": "Take a picture while the pointer is there and return its path."
4654
+ },
4655
+ "dwell_ms": {
4656
+ "type": "integer",
4657
+ "description": "Milliseconds the pointer rests before the picture (default 900)."
4658
+ },
4659
+ "hold_ms": {
4660
+ "type": "integer",
4661
+ "description": "Extra milliseconds to keep the pointer there afterwards (default 0)."
4662
+ },
4663
+ "min_idle_s": {
4664
+ "type": "number",
4665
+ "description": "Required seconds since the person last used the mouse or keyboard (default 8)."
4666
+ },
4667
+ "wait_idle_s": {
4668
+ "type": "number",
4669
+ "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."
4670
+ }
4671
+ },
4672
+ "required": [
4673
+ "x",
4674
+ "y"
4675
+ ]
4676
+ }
4677
+ },
4678
+ {
4679
+ "name": "ui_press_key",
4680
+ "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.",
4681
+ "inputSchema": {
4682
+ "type": "object",
4683
+ "properties": {
4684
+ "key": {
4685
+ "type": "string",
4686
+ "description": "Key name or single character."
4687
+ },
4688
+ "mods": {
4689
+ "type": "array",
4690
+ "items": {
4691
+ "type": "string",
4692
+ "enum": [
4693
+ "ctrl",
4694
+ "shift",
4695
+ "alt"
4696
+ ]
4697
+ },
4698
+ "description": "Modifier keys held during the press."
4699
+ },
4700
+ "hwnd": {
4701
+ "type": "integer",
4702
+ "description": "Window handle from list_native_windows (default: first editor window)."
4703
+ },
4704
+ "method": {
4705
+ "type": "string",
4706
+ "enum": [
4707
+ "post",
4708
+ "input"
4709
+ ],
4710
+ "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)."
4711
+ },
4712
+ "min_idle_s": {
4713
+ "type": "number",
4714
+ "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."
4715
+ },
4716
+ "wait_idle_s": {
4717
+ "type": "number",
4718
+ "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."
4719
+ },
4720
+ "settle_ms": {
4721
+ "type": "integer",
4722
+ "description": "Milliseconds to wait after the key so it has been handled (default 150, max 5000)."
4723
+ }
4724
+ },
4725
+ "required": [
4726
+ "key"
4727
+ ]
4728
+ }
4729
+ },
4730
+ {
4731
+ "name": "ui_screenshot",
4732
+ "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.",
4733
+ "inputSchema": {
4734
+ "type": "object",
4735
+ "properties": {
4736
+ "hwnd": {
4737
+ "type": "integer",
4738
+ "description": "Window handle from list_native_windows (default: first editor window)."
4739
+ },
4740
+ "inline": {
4741
+ "type": "boolean",
4742
+ "description": "Return the image itself instead of a file path (default false)."
4743
+ },
4744
+ "settle_ms": {
4745
+ "type": "integer",
4746
+ "description": "Milliseconds to wait before the picture so earlier input has been handled (default 200, max 5000)."
4747
+ }
4748
+ }
4749
+ }
4750
+ },
4751
+ {
4752
+ "name": "ui_type_text",
4753
+ "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.",
4754
+ "inputSchema": {
4755
+ "type": "object",
4756
+ "properties": {
4757
+ "text": {
4758
+ "type": "string",
4759
+ "description": "The text to type."
4760
+ },
4761
+ "settle_ms": {
4762
+ "type": "integer",
4763
+ "description": "Milliseconds to wait after typing so it has been handled (default 150, max 5000)."
4764
+ },
4765
+ "hwnd": {
4766
+ "type": "integer",
4767
+ "description": "Window handle from list_native_windows (default: first editor window)."
4768
+ }
4769
+ },
4770
+ "required": [
4771
+ "text"
4772
+ ]
4773
+ }
4774
+ },
4584
4775
  {
4585
4776
  "name": "undo",
4586
4777
  "description": "Undo the last edit in the active file.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sublime-mcp",
3
- "version": "1.12.5",
3
+ "version": "1.13.1",
4
4
  "description": "MCP server for Sublime Text 4 — exposes editor state and editing tools to AI assistants via the Model Context Protocol.",
5
5
  "type": "module",
6
6
  "bin": {