sublime-mcp 1.13.5 → 1.13.7

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.
@@ -4749,7 +4749,7 @@
4749
4749
  },
4750
4750
  {
4751
4751
  "name": "ui_screenshot",
4752
- "description": "Take a picture of one window of this Sublime Text process (Windows only). Returns the image itself as an image block (also through batch); inline=false saves a PNG file instead and returns its path. 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.",
4752
+ "description": "Take a picture of one window of this Sublime Text process (Windows only). Returns the image itself as an image block, first in the reply, followed by one text block with the size and what was captured. Works for a window that is behind others or not focused, and for dialogs. Choose the window with window_title (part of its title; an unmatched title lists the windows), kind ('dialog' or 'menu' for an open native dialog or menu) or hwnd from list_native_windows; default is the first editor window, and a dialog or menu open in front of it is then listed in the reply as open_popups_not_in_picture. tab shows one tab for the picture (part of its name, or its 0-based index in the active window) and puts the tab that was in front back afterwards: use it to see a tab that is not in front. region crops, scale zooms (2 doubles the size, to read small text) and max_width shrinks. save_dir (an absolute folder) also keeps the PNG in a dated subfolder and reports saved_path. inline=false returns only a file path. Only windows of Sublime Text itself can be captured, never another program.",
4753
4753
  "inputSchema": {
4754
4754
  "type": "object",
4755
4755
  "properties": {
@@ -4757,9 +4757,48 @@
4757
4757
  "type": "integer",
4758
4758
  "description": "Window handle from list_native_windows (default: first editor window)."
4759
4759
  },
4760
+ "window_title": {
4761
+ "type": "string",
4762
+ "description": "Capture the window whose title contains this text (case-insensitive), instead of giving hwnd."
4763
+ },
4764
+ "kind": {
4765
+ "type": "string",
4766
+ "enum": [
4767
+ "editor_window",
4768
+ "dialog",
4769
+ "menu",
4770
+ "window",
4771
+ "other"
4772
+ ],
4773
+ "description": "Capture the first window of this kind, for example 'dialog' for a native dialog that is open or 'menu' for an open menu (menus have no title). Combine with window_title to narrow it. When a dialog or menu is open and you name no window, the reply lists them as open_popups_not_in_picture."
4774
+ },
4775
+ "tab": {
4776
+ "type": "string",
4777
+ "description": "Show this tab for the picture: part of its name, or digits for its 0-based index in the active window (for example '1'). The tab that was in front is restored."
4778
+ },
4779
+ "min_idle_s": {
4780
+ "type": "number",
4781
+ "description": "With tab: required seconds since the person last used the keyboard or mouse (default 3), because switching tabs moves their focus."
4782
+ },
4783
+ "wait_idle_s": {
4784
+ "type": "number",
4785
+ "description": "With tab: wait up to this many seconds (max 120) for the person to stop typing before giving up (default 10)."
4786
+ },
4787
+ "scale": {
4788
+ "type": "number",
4789
+ "description": "Resize factor: 2 doubles the picture so small text is easier to read, 0.5 halves it (nearest-neighbour; the longest side is capped at 4096 pixels)."
4790
+ },
4791
+ "max_width": {
4792
+ "type": "integer",
4793
+ "description": "Shrink the picture to at most this many pixels wide (never enlarges)."
4794
+ },
4795
+ "save_dir": {
4796
+ "type": "string",
4797
+ "description": "Absolute folder: also save the PNG in a subfolder named by date and return saved_path."
4798
+ },
4760
4799
  "inline": {
4761
4800
  "type": "boolean",
4762
- "description": "Return the image itself (default true); false saves a file and returns its path."
4801
+ "description": "Return the image itself (default true); false returns only a file path (temp file, or in save_dir when given)."
4763
4802
  },
4764
4803
  "region": {
4765
4804
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sublime-mcp",
3
- "version": "1.13.5",
3
+ "version": "1.13.7",
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": {