sublime-mcp 1.14.2 → 1.14.4
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 +90 -76
- package/package.json +1 -1
package/fallback-tools.json
CHANGED
|
@@ -46,10 +46,15 @@
|
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "add_to_kill_ring",
|
|
49
|
-
"description": "Add the current selection to the kill ring (TextCommand, used by yank).",
|
|
49
|
+
"description": "Add the current selection to the kill ring (TextCommand, used by yank). forward=false (default) adds the selection; forward=true is the variant used when killing forward.",
|
|
50
50
|
"inputSchema": {
|
|
51
51
|
"type": "object",
|
|
52
|
-
"properties": {
|
|
52
|
+
"properties": {
|
|
53
|
+
"forward": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false
|
|
56
|
+
}
|
|
57
|
+
}
|
|
53
58
|
}
|
|
54
59
|
},
|
|
55
60
|
{
|
|
@@ -104,10 +109,18 @@
|
|
|
104
109
|
},
|
|
105
110
|
{
|
|
106
111
|
"name": "arithmetic",
|
|
107
|
-
"description": "
|
|
112
|
+
"description": "Replace each selection with the result of an expression (TextCommand). expr is evaluated once per selection with x = the selection read as a number, s = its text, i = its index (0, 1, ...) and math; for example expr='x*10' turns the selections 2 and 3 into 20 and 30, and expr='i + 1' numbers the cursors.",
|
|
108
113
|
"inputSchema": {
|
|
109
114
|
"type": "object",
|
|
110
|
-
"properties": {
|
|
115
|
+
"properties": {
|
|
116
|
+
"expr": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "Python expression using x, s, i and math."
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": [
|
|
122
|
+
"expr"
|
|
123
|
+
]
|
|
111
124
|
}
|
|
112
125
|
},
|
|
113
126
|
{
|
|
@@ -476,7 +489,7 @@
|
|
|
476
489
|
},
|
|
477
490
|
{
|
|
478
491
|
"name": "close_others",
|
|
479
|
-
"description": "Close all
|
|
492
|
+
"description": "Close all tabs in the active tab's group except the active one (Close Other Tabs).",
|
|
480
493
|
"inputSchema": {
|
|
481
494
|
"type": "object",
|
|
482
495
|
"properties": {}
|
|
@@ -563,7 +576,7 @@
|
|
|
563
576
|
},
|
|
564
577
|
{
|
|
565
578
|
"name": "close_unmodified",
|
|
566
|
-
"description": "Close
|
|
579
|
+
"description": "Close the tabs without unsaved changes in the active tab's group (Close Unmodified Tabs).",
|
|
567
580
|
"inputSchema": {
|
|
568
581
|
"type": "object",
|
|
569
582
|
"properties": {}
|
|
@@ -836,14 +849,6 @@
|
|
|
836
849
|
"properties": {}
|
|
837
850
|
}
|
|
838
851
|
},
|
|
839
|
-
{
|
|
840
|
-
"name": "diagnostics",
|
|
841
|
-
"description": "One-call plugin health snapshot: main-thread heartbeat freshness (and a likely_wedged flag), the currently in-flight _on_main dispatch (if any) with its label and running time, console-capture buffer size, and a live main-thread stack trace. Answers 'wedged vs slow vs fine' without needing the main thread's cooperation -- use this before assuming a timeout means the server is dead.",
|
|
842
|
-
"inputSchema": {
|
|
843
|
-
"type": "object",
|
|
844
|
-
"properties": {}
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
852
|
{
|
|
848
853
|
"name": "discover_tools",
|
|
849
854
|
"description": "Find advanced Sublime tools hidden from the default tool surface. With no arguments it lists the top-level categories; category=<path> opens a category (then a subcategory, which lists its tools with schemas); query=<words> searches all tools. Invoke a result through batch(calls=[{tool: <name>, args: {...}}]), including for a single call.",
|
|
@@ -958,17 +963,22 @@
|
|
|
958
963
|
},
|
|
959
964
|
{
|
|
960
965
|
"name": "edit_settings",
|
|
961
|
-
"description": "Open
|
|
966
|
+
"description": "Open a settings file for editing in a split view: the default settings on the left, your own on the right (WindowCommand edit_settings). resource is the settings name without the extension, e.g. 'Preferences' or 'Python'; or pass base_file and user_file as Sublime's own commands do.",
|
|
962
967
|
"inputSchema": {
|
|
963
968
|
"type": "object",
|
|
964
969
|
"properties": {
|
|
965
970
|
"resource": {
|
|
971
|
+
"type": "string",
|
|
972
|
+
"description": "e.g. 'Preferences'."
|
|
973
|
+
},
|
|
974
|
+
"base_file": {
|
|
975
|
+
"type": "string",
|
|
976
|
+
"description": "e.g. ${packages}/Default/Preferences.sublime-settings"
|
|
977
|
+
},
|
|
978
|
+
"user_file": {
|
|
966
979
|
"type": "string"
|
|
967
980
|
}
|
|
968
|
-
}
|
|
969
|
-
"required": [
|
|
970
|
-
"resource"
|
|
971
|
-
]
|
|
981
|
+
}
|
|
972
982
|
}
|
|
973
983
|
},
|
|
974
984
|
{
|
|
@@ -1255,19 +1265,20 @@
|
|
|
1255
1265
|
},
|
|
1256
1266
|
{
|
|
1257
1267
|
"name": "find_in_folder",
|
|
1258
|
-
"description": "Open Find in Files
|
|
1268
|
+
"description": "Open the Find in Files panel with its Where box set to the given folders (WindowCommand find_in_folder, the sidebar's Find in Folder). To search, use project_search or find_in_files.",
|
|
1259
1269
|
"inputSchema": {
|
|
1260
1270
|
"type": "object",
|
|
1261
1271
|
"properties": {
|
|
1262
|
-
"
|
|
1263
|
-
"type": "
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1272
|
+
"dirs": {
|
|
1273
|
+
"type": "array",
|
|
1274
|
+
"items": {
|
|
1275
|
+
"type": "string"
|
|
1276
|
+
},
|
|
1277
|
+
"description": "Folder path(s) to search."
|
|
1267
1278
|
}
|
|
1268
1279
|
},
|
|
1269
1280
|
"required": [
|
|
1270
|
-
"
|
|
1281
|
+
"dirs"
|
|
1271
1282
|
]
|
|
1272
1283
|
}
|
|
1273
1284
|
},
|
|
@@ -1453,7 +1464,7 @@
|
|
|
1453
1464
|
},
|
|
1454
1465
|
{
|
|
1455
1466
|
"name": "fold_unfold",
|
|
1456
|
-
"description": "
|
|
1467
|
+
"description": "Fold the code block at the cursor, or unfold it when it is already folded.",
|
|
1457
1468
|
"inputSchema": {
|
|
1458
1469
|
"type": "object",
|
|
1459
1470
|
"properties": {}
|
|
@@ -1906,7 +1917,7 @@
|
|
|
1906
1917
|
},
|
|
1907
1918
|
{
|
|
1908
1919
|
"name": "get_view_phantoms",
|
|
1909
|
-
"description": "Return phantom HTML and extracted text from a view by name.\nIf key is omitted, returns phantoms for all keys. Output can be huge for a view with hundreds of phantoms (a GhostShell omp tab: about 290 KB): html=false drops the HTML and the empty spacer phantoms, last=N keeps only the newest N, max_chars cuts each text.",
|
|
1920
|
+
"description": "Return phantom HTML and extracted text from a view by name.\nSublime has no API to list phantoms, so this sees only phantom sets that a plugin keeps in a module-level _phantom_sets dict (view id -> PhantomSet), as GhostShell does; phantoms added any other way are not listed.\nIf key is omitted, returns phantoms for all keys. Output can be huge for a view with hundreds of phantoms (a GhostShell omp tab: about 290 KB): html=false drops the HTML and the empty spacer phantoms, last=N keeps only the newest N, max_chars cuts each text.",
|
|
1910
1921
|
"inputSchema": {
|
|
1911
1922
|
"type": "object",
|
|
1912
1923
|
"properties": {
|
|
@@ -2234,14 +2245,6 @@
|
|
|
2234
2245
|
"properties": {}
|
|
2235
2246
|
}
|
|
2236
2247
|
},
|
|
2237
|
-
{
|
|
2238
|
-
"name": "main_thread_stack",
|
|
2239
|
-
"description": "Return ST's main thread's current Python stack trace right now, read directly via sys._current_frames() from whichever thread handles this request. Works even while the main thread is wedged, since it needs no cooperation from it -- use this to see exactly what a stuck call is doing instead of guessing from symptoms.",
|
|
2240
|
-
"inputSchema": {
|
|
2241
|
-
"type": "object",
|
|
2242
|
-
"properties": {}
|
|
2243
|
-
}
|
|
2244
|
-
},
|
|
2245
2248
|
{
|
|
2246
2249
|
"name": "move",
|
|
2247
2250
|
"description": "Moves the selection caret(s) by the specified unit. (TextCommand)",
|
|
@@ -2369,19 +2372,18 @@
|
|
|
2369
2372
|
},
|
|
2370
2373
|
{
|
|
2371
2374
|
"name": "move_view",
|
|
2372
|
-
"description": "Move the active view to
|
|
2375
|
+
"description": "Move the active view to another group (Sublime's move_to_group). group is the target group index (0-based).",
|
|
2373
2376
|
"inputSchema": {
|
|
2374
2377
|
"type": "object",
|
|
2375
2378
|
"properties": {
|
|
2376
2379
|
"group": {
|
|
2377
2380
|
"type": "integer",
|
|
2378
|
-
"
|
|
2379
|
-
},
|
|
2380
|
-
"direction": {
|
|
2381
|
-
"type": "string",
|
|
2382
|
-
"default": ""
|
|
2381
|
+
"description": "Target group index, 0-based."
|
|
2383
2382
|
}
|
|
2384
|
-
}
|
|
2383
|
+
},
|
|
2384
|
+
"required": [
|
|
2385
|
+
"group"
|
|
2386
|
+
]
|
|
2385
2387
|
}
|
|
2386
2388
|
},
|
|
2387
2389
|
{
|
|
@@ -2402,25 +2404,40 @@
|
|
|
2402
2404
|
},
|
|
2403
2405
|
{
|
|
2404
2406
|
"name": "new_file_at",
|
|
2405
|
-
"description": "Create a new file
|
|
2407
|
+
"description": "Create a new file inside the given folders (WindowCommand new_file_at, the sidebar's New File). It opens an input panel for the file name: answer it with drive_input_panel (text=<name>, action='submit').",
|
|
2406
2408
|
"inputSchema": {
|
|
2407
2409
|
"type": "object",
|
|
2408
2410
|
"properties": {
|
|
2409
|
-
"
|
|
2410
|
-
"type": "
|
|
2411
|
+
"dirs": {
|
|
2412
|
+
"type": "array",
|
|
2413
|
+
"items": {
|
|
2414
|
+
"type": "string"
|
|
2415
|
+
},
|
|
2416
|
+
"description": "Folder path(s) to create the file in."
|
|
2411
2417
|
}
|
|
2412
2418
|
},
|
|
2413
2419
|
"required": [
|
|
2414
|
-
"
|
|
2420
|
+
"dirs"
|
|
2415
2421
|
]
|
|
2416
2422
|
}
|
|
2417
2423
|
},
|
|
2418
2424
|
{
|
|
2419
2425
|
"name": "new_folder",
|
|
2420
|
-
"description": "Create a new folder
|
|
2426
|
+
"description": "Create a new folder inside the given folders (WindowCommand new_folder, the sidebar's New Folder). It opens an input panel for the folder name: answer it with drive_input_panel (text=<name>, action='submit').",
|
|
2421
2427
|
"inputSchema": {
|
|
2422
2428
|
"type": "object",
|
|
2423
|
-
"properties": {
|
|
2429
|
+
"properties": {
|
|
2430
|
+
"dirs": {
|
|
2431
|
+
"type": "array",
|
|
2432
|
+
"items": {
|
|
2433
|
+
"type": "string"
|
|
2434
|
+
},
|
|
2435
|
+
"description": "Folder path(s) to create the folder in."
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
"required": [
|
|
2439
|
+
"dirs"
|
|
2440
|
+
]
|
|
2424
2441
|
}
|
|
2425
2442
|
},
|
|
2426
2443
|
{
|
|
@@ -2529,7 +2546,7 @@
|
|
|
2529
2546
|
},
|
|
2530
2547
|
{
|
|
2531
2548
|
"name": "next_pane",
|
|
2532
|
-
"description": "Move focus to the next pane/group in the window.",
|
|
2549
|
+
"description": "Move focus to the next pane/group in the window (Sublime's focus_neighboring_group).",
|
|
2533
2550
|
"inputSchema": {
|
|
2534
2551
|
"type": "object",
|
|
2535
2552
|
"properties": {}
|
|
@@ -2894,7 +2911,7 @@
|
|
|
2894
2911
|
},
|
|
2895
2912
|
{
|
|
2896
2913
|
"name": "prev_pane",
|
|
2897
|
-
"description": "Move focus to the previous pane/group in the window.",
|
|
2914
|
+
"description": "Move focus to the previous pane/group in the window (focus_neighboring_group, backwards).",
|
|
2898
2915
|
"inputSchema": {
|
|
2899
2916
|
"type": "object",
|
|
2900
2917
|
"properties": {}
|
|
@@ -3197,17 +3214,10 @@
|
|
|
3197
3214
|
},
|
|
3198
3215
|
{
|
|
3199
3216
|
"name": "rename_file",
|
|
3200
|
-
"description": "Rename the active file (WindowCommand).
|
|
3217
|
+
"description": "Open the File > Rename prompt for the active file (WindowCommand rename_file). The prompt is an input panel: enter the new name with drive_input_panel (text=<new name>, action='submit').",
|
|
3201
3218
|
"inputSchema": {
|
|
3202
3219
|
"type": "object",
|
|
3203
|
-
"properties": {
|
|
3204
|
-
"path": {
|
|
3205
|
-
"type": "string"
|
|
3206
|
-
}
|
|
3207
|
-
},
|
|
3208
|
-
"required": [
|
|
3209
|
-
"path"
|
|
3210
|
-
]
|
|
3220
|
+
"properties": {}
|
|
3211
3221
|
}
|
|
3212
3222
|
},
|
|
3213
3223
|
{
|
|
@@ -3270,7 +3280,7 @@
|
|
|
3270
3280
|
},
|
|
3271
3281
|
{
|
|
3272
3282
|
"name": "replace_in_files",
|
|
3273
|
-
"description": "
|
|
3283
|
+
"description": "Fill the Find in Files panel and press its Replace button (Find in Files, Replace). Sublime then asks 'Confirm Replace': answer it with dismiss_native_window (action='button', button='Replace' or 'Cancel'). On Replace, the changes are made in the matching files' open buffers (the files open with unsaved changes); write them to disk with save_all. Same `where` syntax as find_in_files. Replace string may be empty for deletion. Regex capture-group backrefs ($1, $2) supported when regex=True.",
|
|
3274
3284
|
"inputSchema": {
|
|
3275
3285
|
"type": "object",
|
|
3276
3286
|
"properties": {
|
|
@@ -3914,16 +3924,17 @@
|
|
|
3914
3924
|
},
|
|
3915
3925
|
{
|
|
3916
3926
|
"name": "set_max_columns",
|
|
3917
|
-
"description": "Set the maximum number of columns
|
|
3927
|
+
"description": "Set the maximum number of columns the groups are laid out in (WindowCommand, Sublime's View > Layout > Max Columns). It only matters when the window has more groups than columns.",
|
|
3918
3928
|
"inputSchema": {
|
|
3919
3929
|
"type": "object",
|
|
3920
3930
|
"properties": {
|
|
3921
|
-
"
|
|
3922
|
-
"type": "integer"
|
|
3931
|
+
"columns": {
|
|
3932
|
+
"type": "integer",
|
|
3933
|
+
"description": "1 to 4."
|
|
3923
3934
|
}
|
|
3924
3935
|
},
|
|
3925
3936
|
"required": [
|
|
3926
|
-
"
|
|
3937
|
+
"columns"
|
|
3927
3938
|
]
|
|
3928
3939
|
}
|
|
3929
3940
|
},
|
|
@@ -4134,10 +4145,20 @@
|
|
|
4134
4145
|
},
|
|
4135
4146
|
{
|
|
4136
4147
|
"name": "sort_selection",
|
|
4137
|
-
"description": "Sort the
|
|
4148
|
+
"description": "Sort the contents of several selections among themselves (TextCommand): with the selections c, a, b they become a, b, c. It does not sort lines; use sort_lines for that. Optional case_sensitive, reverse, remove_duplicates.",
|
|
4138
4149
|
"inputSchema": {
|
|
4139
4150
|
"type": "object",
|
|
4140
|
-
"properties": {
|
|
4151
|
+
"properties": {
|
|
4152
|
+
"case_sensitive": {
|
|
4153
|
+
"type": "boolean"
|
|
4154
|
+
},
|
|
4155
|
+
"reverse": {
|
|
4156
|
+
"type": "boolean"
|
|
4157
|
+
},
|
|
4158
|
+
"remove_duplicates": {
|
|
4159
|
+
"type": "boolean"
|
|
4160
|
+
}
|
|
4161
|
+
}
|
|
4141
4162
|
}
|
|
4142
4163
|
},
|
|
4143
4164
|
{
|
|
@@ -4969,17 +4990,10 @@
|
|
|
4969
4990
|
},
|
|
4970
4991
|
{
|
|
4971
4992
|
"name": "view_resource",
|
|
4972
|
-
"description": "Open
|
|
4993
|
+
"description": "Open Sublime's View Package File picker (WindowCommand view_resource): pick a package, then a file in it. It takes no arguments; answer the pickers with ui_type_text and ui_press_key.",
|
|
4973
4994
|
"inputSchema": {
|
|
4974
4995
|
"type": "object",
|
|
4975
|
-
"properties": {
|
|
4976
|
-
"resource": {
|
|
4977
|
-
"type": "string"
|
|
4978
|
-
}
|
|
4979
|
-
},
|
|
4980
|
-
"required": [
|
|
4981
|
-
"resource"
|
|
4982
|
-
]
|
|
4996
|
+
"properties": {}
|
|
4983
4997
|
}
|
|
4984
4998
|
},
|
|
4985
4999
|
{
|
package/package.json
CHANGED