sublime-mcp 1.4.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.
- package/bin/cli.js +69 -0
- package/fallback-tools.json +2462 -0
- package/http.js +43 -0
- package/index.js +143 -0
- package/package.json +33 -0
- package/test_batch.mjs +72 -0
- package/test_fallback_catalog.mjs +111 -0
|
@@ -0,0 +1,2462 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "GENERATED FILE - do not edit. Produced by tools/generate_fallback_catalog.py from packages/st-plugin/sublime_mcp.py::_MCP_TOOLS. Regenerate after changing the backend tool catalog.",
|
|
3
|
+
"tools": [
|
|
4
|
+
{
|
|
5
|
+
"name": "add_folder",
|
|
6
|
+
"description": "Add a folder to the current project.",
|
|
7
|
+
"inputSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"path": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": [
|
|
15
|
+
"path"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "add_missing_newline",
|
|
21
|
+
"description": "Alias of ensure_newline_at_eof \u2014 add a trailing newline at EOF if absent.",
|
|
22
|
+
"inputSchema": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "add_to_kill_ring",
|
|
29
|
+
"description": "Add the current selection to the kill ring (TextCommand, used by yank).",
|
|
30
|
+
"inputSchema": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "arithmetic",
|
|
37
|
+
"description": "Evaluate the selected expression as arithmetic and replace it with the result (TextCommand). Select '2+2' to get '4'.",
|
|
38
|
+
"inputSchema": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "auto_complete_goto_definition",
|
|
45
|
+
"description": "Auto-complete and goto the definition of the symbol under the cursor (TextCommand).",
|
|
46
|
+
"inputSchema": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "auto_indent",
|
|
53
|
+
"description": "Apply auto-indentation to the current selection(s) using the active syntax's indentation rules.",
|
|
54
|
+
"inputSchema": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "auto_indent_tag",
|
|
61
|
+
"description": "Re-indent the enclosing HTML/XML tag structure (TextCommand). Useful for fixing nested tag indentation.",
|
|
62
|
+
"inputSchema": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "batch",
|
|
69
|
+
"description": "Run multiple sublime-mcp tool calls in a single request instead of paying a\nseparate HTTP round trip per call. Each call still does its own main-thread\nwork independently: the batch is not wrapped in one shared main-thread\ndispatch, so a slow or polling call cannot freeze the UI for the rest of\nthe batch. Use this whenever you need more than one piece of editor state\nat once (e.g. get_active_file + get_selection + get_cursor_context), or\nwant to chain several edits/reads together.\ncalls: list of {tool: <tool name>, args: <object, optional>}. Cannot call 'batch' itself.\nMax 50 calls per batch.\nReturns {results: [...]} \u2014 one entry per call, in order; failed calls return {error: ...}\ninstead of aborting the whole batch.",
|
|
70
|
+
"inputSchema": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"calls": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"maxItems": 50,
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"tool": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"args": {
|
|
83
|
+
"type": "object"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": [
|
|
87
|
+
"tool"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"calls"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "clear_bookmarks",
|
|
99
|
+
"description": "Clear all bookmarks in the active view.",
|
|
100
|
+
"inputSchema": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "clear_fields",
|
|
107
|
+
"description": "Clear the current snippet field highlights (used after inserting a snippet with $1/$2 tab stops).",
|
|
108
|
+
"inputSchema": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "clone_file",
|
|
115
|
+
"description": "Create a clone of the active view (opens the same file in a new tab, sharing the buffer).",
|
|
116
|
+
"inputSchema": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "close_all",
|
|
123
|
+
"description": "Close all open files/views in the current window.",
|
|
124
|
+
"inputSchema": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "close_file",
|
|
131
|
+
"description": "Close a file by path, or close the active file if path is omitted.",
|
|
132
|
+
"inputSchema": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"path": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"default": ""
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "close_other_tabs",
|
|
144
|
+
"description": "Alias of close_others \u2014 close all views in the current group except the active one.",
|
|
145
|
+
"inputSchema": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"properties": {}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "close_others",
|
|
152
|
+
"description": "Close all views in the current group except the active one (Close Other Tabs).",
|
|
153
|
+
"inputSchema": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "close_pane",
|
|
160
|
+
"description": "Close the current pane/group and all views inside it.",
|
|
161
|
+
"inputSchema": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"properties": {}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "close_transient",
|
|
168
|
+
"description": "Close all transient views (preview tabs) in the current window.",
|
|
169
|
+
"inputSchema": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "close_unmodified",
|
|
176
|
+
"description": "Close all unmodified (clean) views in the current window.",
|
|
177
|
+
"inputSchema": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "convert_color_scheme",
|
|
184
|
+
"description": "Convert a .sublime-color-scheme file to JSON for editing (WindowCommand).",
|
|
185
|
+
"inputSchema": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "convert_ident_case",
|
|
192
|
+
"description": "Convert the identifier under the cursor to a different case style (TextCommand). Args: 'case' (lower/title/upper), 'separator' (e.g. '_' for snake_case, '-' for kebab-case), 'first_case' (lower/upper for first letter in title case).",
|
|
193
|
+
"inputSchema": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"case": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "Target case: 'lower', 'title', or 'upper'."
|
|
199
|
+
},
|
|
200
|
+
"separator": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "Word separator inserted between words, e.g. '_' for snake_case, '-' for kebab-case. Empty for camelCase."
|
|
203
|
+
},
|
|
204
|
+
"first_case": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"description": "When case='title', the case of the first letter: 'lower' (lowerCamelCase) or 'upper' (UpperCamelCase)."
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "convert_syntax",
|
|
213
|
+
"description": "Convert a .tmLanguage syntax file to .sublime-syntax (WindowCommand).",
|
|
214
|
+
"inputSchema": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "copy",
|
|
221
|
+
"description": "Copy the current selection(s) to the clipboard.",
|
|
222
|
+
"inputSchema": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "copy_path",
|
|
229
|
+
"description": "Copy the active file's path to the clipboard (WindowCommand).",
|
|
230
|
+
"inputSchema": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"properties": {}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "customize_color_scheme",
|
|
237
|
+
"description": "Open the active color scheme for customization (WindowCommand).",
|
|
238
|
+
"inputSchema": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"properties": {}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "customize_theme",
|
|
245
|
+
"description": "Open the active theme for customization (WindowCommand).",
|
|
246
|
+
"inputSchema": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "cut",
|
|
253
|
+
"description": "Cut the current selection(s) to the clipboard.",
|
|
254
|
+
"inputSchema": {
|
|
255
|
+
"type": "object",
|
|
256
|
+
"properties": {}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "delete_to_mark",
|
|
261
|
+
"description": "Delete the text between the cursor and the previously set mark (TextCommand).",
|
|
262
|
+
"inputSchema": {
|
|
263
|
+
"type": "object",
|
|
264
|
+
"properties": {}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "detect_indentation",
|
|
269
|
+
"description": "Auto-detect the file's indentation style (tabs vs spaces, width) and set the view's indent settings accordingly.",
|
|
270
|
+
"inputSchema": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"properties": {}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "duplicate_line",
|
|
277
|
+
"description": "Duplicate the current line(s) in the active file.",
|
|
278
|
+
"inputSchema": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "echo",
|
|
285
|
+
"description": "Print a debug message to the ST console (ApplicationCommand). Pass 'msg'.",
|
|
286
|
+
"inputSchema": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"msg": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"required": [
|
|
294
|
+
"msg"
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "edit_settings",
|
|
300
|
+
"description": "Open the given settings resource for editing (WindowCommand). Pass 'resource' (e.g. 'Preferences').",
|
|
301
|
+
"inputSchema": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"properties": {
|
|
304
|
+
"resource": {
|
|
305
|
+
"type": "string"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"required": [
|
|
309
|
+
"resource"
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "edit_syntax_settings",
|
|
315
|
+
"description": "Open the syntax-specific settings file (WindowCommand).",
|
|
316
|
+
"inputSchema": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"properties": {}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "ensure_newline_at_eof",
|
|
323
|
+
"description": "Ensure the file ends with a single trailing newline (add one if missing).",
|
|
324
|
+
"inputSchema": {
|
|
325
|
+
"type": "object",
|
|
326
|
+
"properties": {}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "eval_python",
|
|
331
|
+
"description": "Execute arbitrary Python in Sublime Text's main thread.\nLocals: sublime, window, view, print. Returns captured stdout in 'output'.",
|
|
332
|
+
"inputSchema": {
|
|
333
|
+
"type": "object",
|
|
334
|
+
"properties": {
|
|
335
|
+
"code": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"code"
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "eval_python_latest",
|
|
346
|
+
"description": "Execute Python code using the system Python interpreter outside Sublime Text's embedded sandbox.\nReturns stdout, stderr, and returncode.",
|
|
347
|
+
"inputSchema": {
|
|
348
|
+
"type": "object",
|
|
349
|
+
"properties": {
|
|
350
|
+
"code": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"required": [
|
|
355
|
+
"code"
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "exec",
|
|
361
|
+
"description": "Run a build system target via the exec command (WindowCommand). Pass 'cmd' (list) and optional 'working_dir', 'shell_cmd', 'env', etc.",
|
|
362
|
+
"inputSchema": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"cmd": {
|
|
366
|
+
"type": "array",
|
|
367
|
+
"items": {
|
|
368
|
+
"type": "string"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"working_dir": {
|
|
372
|
+
"type": "string"
|
|
373
|
+
},
|
|
374
|
+
"shell_cmd": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"env": {
|
|
378
|
+
"type": "object"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "expand_selection",
|
|
385
|
+
"description": "Expand the current selection to the next semantic boundary (Ctrl+Shift+A). Repeated calls expand further: word \u2192 brackets \u2192 line \u2192 paragraph \u2192 scope.",
|
|
386
|
+
"inputSchema": {
|
|
387
|
+
"type": "object",
|
|
388
|
+
"properties": {}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "expand_selection_to_brackets",
|
|
393
|
+
"description": "Expand the current selection to the enclosing brackets/parens/braces.",
|
|
394
|
+
"inputSchema": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "expand_selection_to_indentation",
|
|
401
|
+
"description": "Expand the current selection to the surrounding indentation block.",
|
|
402
|
+
"inputSchema": {
|
|
403
|
+
"type": "object",
|
|
404
|
+
"properties": {}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "expand_selection_to_paragraph",
|
|
409
|
+
"description": "Expand the current selection to the surrounding paragraph.",
|
|
410
|
+
"inputSchema": {
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "expand_selection_to_scope",
|
|
417
|
+
"description": "Expand the current selection to the enclosing syntax scope.",
|
|
418
|
+
"inputSchema": {
|
|
419
|
+
"type": "object",
|
|
420
|
+
"properties": {}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "expand_tabs",
|
|
425
|
+
"description": "Convert leading tabs in the current selection (or whole file) to spaces, using the view's tab_size.",
|
|
426
|
+
"inputSchema": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "find_and_replace",
|
|
433
|
+
"description": "Open the single-file Find & Replace panel (Ctrl+H equivalent) on the active view, or perform a silent replace_all on it. For multi-file replace use replace_in_files. Supports regex with $1/$2 backrefs in replace, preserve_case, whole_word, in_selection, and wrap. By default opens the panel (show_panel=True); pass replace_all=True and show_panel=False to do a silent Replace All without the panel.",
|
|
434
|
+
"inputSchema": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"properties": {
|
|
437
|
+
"pattern": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"replace": {
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"case_sensitive": {
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"default": false
|
|
446
|
+
},
|
|
447
|
+
"regex": {
|
|
448
|
+
"type": "boolean",
|
|
449
|
+
"default": false
|
|
450
|
+
},
|
|
451
|
+
"whole_word": {
|
|
452
|
+
"type": "boolean",
|
|
453
|
+
"default": false
|
|
454
|
+
},
|
|
455
|
+
"preserve_case": {
|
|
456
|
+
"type": "boolean",
|
|
457
|
+
"default": false
|
|
458
|
+
},
|
|
459
|
+
"in_selection": {
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"default": false
|
|
462
|
+
},
|
|
463
|
+
"wrap": {
|
|
464
|
+
"type": "boolean",
|
|
465
|
+
"default": true
|
|
466
|
+
},
|
|
467
|
+
"show_panel": {
|
|
468
|
+
"type": "boolean",
|
|
469
|
+
"default": true
|
|
470
|
+
},
|
|
471
|
+
"replace_all": {
|
|
472
|
+
"type": "boolean",
|
|
473
|
+
"default": false
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"required": [
|
|
477
|
+
"pattern",
|
|
478
|
+
"replace"
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"name": "find_in_file",
|
|
484
|
+
"description": "Find all occurrences of pattern in the active file. Returns list of {line, col, text}. Does NOT open a panel \u2014 for the interactive Find/Replace panel use find_and_replace. Use case_sensitive=True for case-sensitive match, regex=True to treat pattern as a regular expression (Python re syntax).",
|
|
485
|
+
"inputSchema": {
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"pattern": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "Search string or regex pattern"
|
|
491
|
+
},
|
|
492
|
+
"case_sensitive": {
|
|
493
|
+
"type": "boolean",
|
|
494
|
+
"default": false
|
|
495
|
+
},
|
|
496
|
+
"regex": {
|
|
497
|
+
"type": "boolean",
|
|
498
|
+
"default": false
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"required": [
|
|
502
|
+
"pattern"
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "find_in_files",
|
|
508
|
+
"description": "Open ST's native Find in Files panel (Ctrl+Shift+H equivalent) and run a search. Routes through ST's real C++ find engine, NOT a Python reimplementation. The three-box Find / Replace / Where panel is shown so the user sees exactly what is being searched. The `where` parameter accepts the full ST Where syntax: globs (*.py, -*.md), folder paths, ${project}, ${folder:Name}, ${open_files}, <project filters>, or combinations separated by commas. Pass show_panel=False for a silent background search.",
|
|
509
|
+
"inputSchema": {
|
|
510
|
+
"type": "object",
|
|
511
|
+
"properties": {
|
|
512
|
+
"pattern": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"description": "Search string or regex"
|
|
515
|
+
},
|
|
516
|
+
"replace": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"description": "Optional Replace box text. Does not auto-execute; use replace_in_files for that."
|
|
519
|
+
},
|
|
520
|
+
"where": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"description": "Where filter: globs, folder paths, ${project}, ${folder:Name}, ${open_files}, <project filters>"
|
|
523
|
+
},
|
|
524
|
+
"case_sensitive": {
|
|
525
|
+
"type": "boolean",
|
|
526
|
+
"default": false
|
|
527
|
+
},
|
|
528
|
+
"regex": {
|
|
529
|
+
"type": "boolean",
|
|
530
|
+
"default": false
|
|
531
|
+
},
|
|
532
|
+
"whole_word": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"default": false
|
|
535
|
+
},
|
|
536
|
+
"preserve_case": {
|
|
537
|
+
"type": "boolean",
|
|
538
|
+
"default": false
|
|
539
|
+
},
|
|
540
|
+
"show_panel": {
|
|
541
|
+
"type": "boolean",
|
|
542
|
+
"default": true
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"required": [
|
|
546
|
+
"pattern"
|
|
547
|
+
]
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "find_in_folder",
|
|
552
|
+
"description": "Open Find in Files scoped to a folder (WindowCommand). Pass 'pattern' (regex) and optional 'where'.",
|
|
553
|
+
"inputSchema": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"properties": {
|
|
556
|
+
"pattern": {
|
|
557
|
+
"type": "string"
|
|
558
|
+
},
|
|
559
|
+
"where": {
|
|
560
|
+
"type": "string"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"required": [
|
|
564
|
+
"pattern"
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "focus_group",
|
|
570
|
+
"description": "Move focus to a pane group by 0-based index.",
|
|
571
|
+
"inputSchema": {
|
|
572
|
+
"type": "object",
|
|
573
|
+
"properties": {
|
|
574
|
+
"group": {
|
|
575
|
+
"type": "integer"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"group"
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "focus_neighboring_group",
|
|
585
|
+
"description": "Move focus to the neighboring pane group (cycle through panes).",
|
|
586
|
+
"inputSchema": {
|
|
587
|
+
"type": "object",
|
|
588
|
+
"properties": {}
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "fold_lines",
|
|
593
|
+
"description": "Fold (collapse) lines begin through end (1-based) in the active file.",
|
|
594
|
+
"inputSchema": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"begin": {
|
|
598
|
+
"type": "integer"
|
|
599
|
+
},
|
|
600
|
+
"end": {
|
|
601
|
+
"type": "integer"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"begin",
|
|
606
|
+
"end"
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "fold_unfold",
|
|
612
|
+
"description": "Toggle the fold state of the region at the cursor (TextCommand). Collapses or expands the enclosing code block.",
|
|
613
|
+
"inputSchema": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": {}
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "get_active_file",
|
|
620
|
+
"description": "Return the active file's path, full content, cursor line/col, dirty flag, and syntax name.",
|
|
621
|
+
"inputSchema": {
|
|
622
|
+
"type": "object",
|
|
623
|
+
"properties": {}
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"name": "get_active_panel",
|
|
628
|
+
"description": "Return the active panel id and, if it is an output panel, its content.",
|
|
629
|
+
"inputSchema": {
|
|
630
|
+
"type": "object",
|
|
631
|
+
"properties": {}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "get_bookmarks",
|
|
636
|
+
"description": "Return all bookmarked positions in the active file.",
|
|
637
|
+
"inputSchema": {
|
|
638
|
+
"type": "object",
|
|
639
|
+
"properties": {}
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "get_command_palette",
|
|
644
|
+
"description": "List Command Palette entries from installed *.sublime-commands resources.\nOptional filters: package, command id, or caption substring.",
|
|
645
|
+
"inputSchema": {
|
|
646
|
+
"type": "object",
|
|
647
|
+
"properties": {
|
|
648
|
+
"package": {
|
|
649
|
+
"type": "string",
|
|
650
|
+
"default": ""
|
|
651
|
+
},
|
|
652
|
+
"command": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"default": ""
|
|
655
|
+
},
|
|
656
|
+
"caption": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"default": ""
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "get_commands",
|
|
665
|
+
"description": "List runnable Sublime command ids from loaded command classes, optionally enriched\nwith matching Command Palette entries from installed packages.",
|
|
666
|
+
"inputSchema": {
|
|
667
|
+
"type": "object",
|
|
668
|
+
"properties": {
|
|
669
|
+
"package": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"default": ""
|
|
672
|
+
},
|
|
673
|
+
"command": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"default": ""
|
|
676
|
+
},
|
|
677
|
+
"include_palette": {
|
|
678
|
+
"type": "boolean",
|
|
679
|
+
"default": true
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"name": "get_console_full",
|
|
686
|
+
"description": "Return the entire captured ST console buffer with no tail limit.\nIncludes startup messages, plugin load events, and all errors since ST started.",
|
|
687
|
+
"inputSchema": {
|
|
688
|
+
"type": "object",
|
|
689
|
+
"properties": {}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "get_console_log",
|
|
694
|
+
"description": "Return recent Sublime Text console output (plugin log messages and stdout).\ntail=N limits to the last N entries. tail=0 returns all captured entries.",
|
|
695
|
+
"inputSchema": {
|
|
696
|
+
"type": "object",
|
|
697
|
+
"properties": {
|
|
698
|
+
"tail": {
|
|
699
|
+
"type": "integer",
|
|
700
|
+
"default": 100
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "get_console_win",
|
|
707
|
+
"description": "Windows-only fallback: captures ST console by clicking the output area via ctypes then Ctrl+A/Ctrl+C.\nUse when get_console_full fails. Returns error on non-Windows.",
|
|
708
|
+
"inputSchema": {
|
|
709
|
+
"type": "object",
|
|
710
|
+
"properties": {}
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "get_cursor_context",
|
|
715
|
+
"description": "Return `lines` lines above and below the cursor with 1-based line numbers prepended.",
|
|
716
|
+
"inputSchema": {
|
|
717
|
+
"type": "object",
|
|
718
|
+
"properties": {
|
|
719
|
+
"lines": {
|
|
720
|
+
"type": "integer",
|
|
721
|
+
"default": 10
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "get_encoding",
|
|
728
|
+
"description": "Return the character encoding of the active file.",
|
|
729
|
+
"inputSchema": {
|
|
730
|
+
"type": "object",
|
|
731
|
+
"properties": {}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "get_file_content",
|
|
736
|
+
"description": "Return the full content of an already-open file by its path.",
|
|
737
|
+
"inputSchema": {
|
|
738
|
+
"type": "object",
|
|
739
|
+
"properties": {
|
|
740
|
+
"path": {
|
|
741
|
+
"type": "string"
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"required": [
|
|
745
|
+
"path"
|
|
746
|
+
]
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "get_help",
|
|
751
|
+
"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.",
|
|
752
|
+
"inputSchema": {
|
|
753
|
+
"type": "object",
|
|
754
|
+
"properties": {}
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "get_layout",
|
|
759
|
+
"description": "Return the current window layout (groups, cells) and which files are in each group.",
|
|
760
|
+
"inputSchema": {
|
|
761
|
+
"type": "object",
|
|
762
|
+
"properties": {}
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "get_line_count",
|
|
767
|
+
"description": "Return the total number of lines in the active file.",
|
|
768
|
+
"inputSchema": {
|
|
769
|
+
"type": "object",
|
|
770
|
+
"properties": {}
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "get_menu_items",
|
|
775
|
+
"description": "List installed menu items from *.sublime-menu resources.\nOptional filters: menu filename, caption substring, or command id substring.",
|
|
776
|
+
"inputSchema": {
|
|
777
|
+
"type": "object",
|
|
778
|
+
"properties": {
|
|
779
|
+
"menu": {
|
|
780
|
+
"type": "string",
|
|
781
|
+
"default": ""
|
|
782
|
+
},
|
|
783
|
+
"caption": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"default": ""
|
|
786
|
+
},
|
|
787
|
+
"command": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"default": ""
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "get_open_files",
|
|
796
|
+
"description": "List all files open in the current window (path, name, is_dirty).",
|
|
797
|
+
"inputSchema": {
|
|
798
|
+
"type": "object",
|
|
799
|
+
"properties": {}
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "get_output_panel",
|
|
804
|
+
"description": "Return the text content of an output panel.\nIf name is omitted, read the active output panel. Use name='exec' for build output.",
|
|
805
|
+
"inputSchema": {
|
|
806
|
+
"type": "object",
|
|
807
|
+
"properties": {
|
|
808
|
+
"name": {
|
|
809
|
+
"type": "string",
|
|
810
|
+
"default": ""
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "get_package_mcp_info",
|
|
817
|
+
"description": "Return everything needed to write an MCP extension for an installed Package Control package.\nReturns: path, output_file, commands (with captions and args), settings_keys, python_files, extension_template.\nWrite the extension to output_file following extension_template; ST loads it automatically.",
|
|
818
|
+
"inputSchema": {
|
|
819
|
+
"type": "object",
|
|
820
|
+
"properties": {
|
|
821
|
+
"package": {
|
|
822
|
+
"type": "string"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"required": [
|
|
826
|
+
"package"
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "get_project_data",
|
|
832
|
+
"description": "Return the raw .sublime-project JSON data for the current project.",
|
|
833
|
+
"inputSchema": {
|
|
834
|
+
"type": "object",
|
|
835
|
+
"properties": {}
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "get_project_folders",
|
|
840
|
+
"description": "Return the project's root folder paths.",
|
|
841
|
+
"inputSchema": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"properties": {}
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "get_scope_at_cursor",
|
|
848
|
+
"description": "Return the full syntax scope string at the cursor position.",
|
|
849
|
+
"inputSchema": {
|
|
850
|
+
"type": "object",
|
|
851
|
+
"properties": {}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "get_selection",
|
|
856
|
+
"description": "Return the current selection(s): text and begin/end line+col for each.",
|
|
857
|
+
"inputSchema": {
|
|
858
|
+
"type": "object",
|
|
859
|
+
"properties": {}
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "get_setting",
|
|
864
|
+
"description": "Get a Sublime Text setting by key. scope='view' (default) or 'window'.",
|
|
865
|
+
"inputSchema": {
|
|
866
|
+
"type": "object",
|
|
867
|
+
"properties": {
|
|
868
|
+
"key": {
|
|
869
|
+
"type": "string"
|
|
870
|
+
},
|
|
871
|
+
"scope": {
|
|
872
|
+
"type": "string",
|
|
873
|
+
"default": "view"
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"required": [
|
|
877
|
+
"key"
|
|
878
|
+
]
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "get_sheet_content",
|
|
883
|
+
"description": "Return the content of any tab by its sheet index (from get_sheets).\nWorks for text tabs including untitled buffers and Terminus tabs.\nFor image tabs returns the file path and content_base64 (base64-encoded image data).",
|
|
884
|
+
"inputSchema": {
|
|
885
|
+
"type": "object",
|
|
886
|
+
"properties": {
|
|
887
|
+
"index": {
|
|
888
|
+
"type": "integer"
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"required": [
|
|
892
|
+
"index"
|
|
893
|
+
]
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "get_sheets",
|
|
898
|
+
"description": "List ALL sheets (tabs) in the current window by index, including images and untitled buffers.\nReturns index, type (TextSheet/ImageSheet), path, name, is_dirty for each.\nUse index with get_sheet_content to read a specific tab.",
|
|
899
|
+
"inputSchema": {
|
|
900
|
+
"type": "object",
|
|
901
|
+
"properties": {}
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "get_symbols",
|
|
906
|
+
"description": "Return all symbols (functions, classes, etc.) in the active file with line numbers.",
|
|
907
|
+
"inputSchema": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"properties": {}
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "get_syntaxes",
|
|
914
|
+
"description": "List all syntax definitions available in Sublime Text (name + path).",
|
|
915
|
+
"inputSchema": {
|
|
916
|
+
"type": "object",
|
|
917
|
+
"properties": {}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "get_variables",
|
|
922
|
+
"description": "Return Sublime Text's build variables: $file, $project_path, $platform, etc.",
|
|
923
|
+
"inputSchema": {
|
|
924
|
+
"type": "object",
|
|
925
|
+
"properties": {}
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "get_view_chars",
|
|
930
|
+
"description": "Return text at character offsets begin..end (0-based, end exclusive) from any open tab.\nClamps to buffer bounds automatically. Omit name for the active view.",
|
|
931
|
+
"inputSchema": {
|
|
932
|
+
"type": "object",
|
|
933
|
+
"properties": {
|
|
934
|
+
"begin": {
|
|
935
|
+
"type": "integer"
|
|
936
|
+
},
|
|
937
|
+
"end": {
|
|
938
|
+
"type": "integer"
|
|
939
|
+
},
|
|
940
|
+
"name": {
|
|
941
|
+
"type": "string",
|
|
942
|
+
"default": ""
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
"required": [
|
|
946
|
+
"begin",
|
|
947
|
+
"end"
|
|
948
|
+
]
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "get_view_content",
|
|
953
|
+
"description": "Return the full content of any open tab by name (partial match, case-insensitive).\nWorks for Terminus tabs and other nameless views that have no file path.\nUse index (0-based, from get_open_files) to target a tab by position instead of name.\nOmit both to read the active view.",
|
|
954
|
+
"inputSchema": {
|
|
955
|
+
"type": "object",
|
|
956
|
+
"properties": {
|
|
957
|
+
"name": {
|
|
958
|
+
"type": "string",
|
|
959
|
+
"default": ""
|
|
960
|
+
},
|
|
961
|
+
"index": {
|
|
962
|
+
"type": "integer",
|
|
963
|
+
"default": -1
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "get_view_phantoms",
|
|
970
|
+
"description": "Return phantom HTML and extracted text from a view by name.\nIf key is omitted, returns phantoms for all keys.",
|
|
971
|
+
"inputSchema": {
|
|
972
|
+
"type": "object",
|
|
973
|
+
"properties": {
|
|
974
|
+
"name": {
|
|
975
|
+
"type": "string",
|
|
976
|
+
"default": ""
|
|
977
|
+
},
|
|
978
|
+
"key": {
|
|
979
|
+
"type": "string",
|
|
980
|
+
"default": ""
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"name": "get_view_size",
|
|
987
|
+
"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.",
|
|
988
|
+
"inputSchema": {
|
|
989
|
+
"type": "object",
|
|
990
|
+
"properties": {
|
|
991
|
+
"name": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"default": ""
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"name": "get_word_at_cursor",
|
|
1000
|
+
"description": "Return the word under the cursor and its line/col.",
|
|
1001
|
+
"inputSchema": {
|
|
1002
|
+
"type": "object",
|
|
1003
|
+
"properties": {}
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "goto_definition",
|
|
1008
|
+
"description": "Goto definition for the symbol under the cursor (WindowCommand).",
|
|
1009
|
+
"inputSchema": {
|
|
1010
|
+
"type": "object",
|
|
1011
|
+
"properties": {}
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "goto_line",
|
|
1016
|
+
"description": "Move the cursor to a line (and optional column) in the active file.",
|
|
1017
|
+
"inputSchema": {
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"properties": {
|
|
1020
|
+
"line": {
|
|
1021
|
+
"type": "integer"
|
|
1022
|
+
},
|
|
1023
|
+
"col": {
|
|
1024
|
+
"type": "integer",
|
|
1025
|
+
"default": 1
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"required": [
|
|
1029
|
+
"line"
|
|
1030
|
+
]
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "goto_reference",
|
|
1035
|
+
"description": "Goto reference for the symbol under the cursor (WindowCommand).",
|
|
1036
|
+
"inputSchema": {
|
|
1037
|
+
"type": "object",
|
|
1038
|
+
"properties": {}
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "html_print",
|
|
1043
|
+
"description": "Open the current file as HTML for printing (TextCommand). Equivalent to File > Print.",
|
|
1044
|
+
"inputSchema": {
|
|
1045
|
+
"type": "object",
|
|
1046
|
+
"properties": {}
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"name": "indent",
|
|
1051
|
+
"description": "Indent the current selection(s) by one indentation level (Tab when there is a selection).",
|
|
1052
|
+
"inputSchema": {
|
|
1053
|
+
"type": "object",
|
|
1054
|
+
"properties": {}
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "insert",
|
|
1059
|
+
"description": "Insert text at the cursor(s). Replacement for typing: characters are inserted into each selection.",
|
|
1060
|
+
"inputSchema": {
|
|
1061
|
+
"type": "object",
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"characters": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"description": "Text to insert at each cursor."
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
"required": [
|
|
1069
|
+
"characters"
|
|
1070
|
+
]
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"name": "insert_snippet",
|
|
1075
|
+
"description": "Insert a snippet at the cursor using Sublime Text's snippet syntax (e.g. $1 for tab stops).",
|
|
1076
|
+
"inputSchema": {
|
|
1077
|
+
"type": "object",
|
|
1078
|
+
"properties": {
|
|
1079
|
+
"contents": {
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"required": [
|
|
1084
|
+
"contents"
|
|
1085
|
+
]
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "install_package",
|
|
1090
|
+
"description": "Install a Package Control package by exact name. Use search_packages first to find the correct name. Installation runs in the background \u2014 check the ST console for progress.",
|
|
1091
|
+
"inputSchema": {
|
|
1092
|
+
"type": "object",
|
|
1093
|
+
"properties": {
|
|
1094
|
+
"package": {
|
|
1095
|
+
"type": "string"
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
"required": [
|
|
1099
|
+
"package"
|
|
1100
|
+
]
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"name": "install_package_control",
|
|
1105
|
+
"description": "Install Package Control (ApplicationCommand).",
|
|
1106
|
+
"inputSchema": {
|
|
1107
|
+
"type": "object",
|
|
1108
|
+
"properties": {}
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "invert_selection",
|
|
1113
|
+
"description": "Invert the selection: what was selected becomes unselected and vice versa (within the current line range).",
|
|
1114
|
+
"inputSchema": {
|
|
1115
|
+
"type": "object",
|
|
1116
|
+
"properties": {}
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"name": "join_lines",
|
|
1121
|
+
"description": "Join the selected lines into a single line (Ctrl+J).",
|
|
1122
|
+
"inputSchema": {
|
|
1123
|
+
"type": "object",
|
|
1124
|
+
"properties": {}
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "jump_back",
|
|
1129
|
+
"description": "Jump back in the navigation history (TextCommand). Equivalent to Alt+- (jump back through edit/cursor history).",
|
|
1130
|
+
"inputSchema": {
|
|
1131
|
+
"type": "object",
|
|
1132
|
+
"properties": {}
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "jump_forward",
|
|
1137
|
+
"description": "Jump forward in the navigation history (TextCommand). Equivalent to Alt+Shift+- (jump forward through edit/cursor history).",
|
|
1138
|
+
"inputSchema": {
|
|
1139
|
+
"type": "object",
|
|
1140
|
+
"properties": {}
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "lookup_symbol",
|
|
1145
|
+
"description": "Find where a symbol is defined across all open files.",
|
|
1146
|
+
"inputSchema": {
|
|
1147
|
+
"type": "object",
|
|
1148
|
+
"properties": {
|
|
1149
|
+
"symbol": {
|
|
1150
|
+
"type": "string"
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"required": [
|
|
1154
|
+
"symbol"
|
|
1155
|
+
]
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"name": "lower_case",
|
|
1160
|
+
"description": "Convert the current selection(s) to lower case.",
|
|
1161
|
+
"inputSchema": {
|
|
1162
|
+
"type": "object",
|
|
1163
|
+
"properties": {}
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "move_line_down",
|
|
1168
|
+
"description": "Move the current line(s) down by one line.",
|
|
1169
|
+
"inputSchema": {
|
|
1170
|
+
"type": "object",
|
|
1171
|
+
"properties": {}
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "move_line_up",
|
|
1176
|
+
"description": "Move the current line(s) up by one line.",
|
|
1177
|
+
"inputSchema": {
|
|
1178
|
+
"type": "object",
|
|
1179
|
+
"properties": {}
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"name": "move_to_neighboring_group",
|
|
1184
|
+
"description": "Move the active view to the neighboring pane group.",
|
|
1185
|
+
"inputSchema": {
|
|
1186
|
+
"type": "object",
|
|
1187
|
+
"properties": {}
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "move_view",
|
|
1192
|
+
"description": "Move the active view to a different group. Optional args: group (target group index), direction ('left'/'right'/'up'/'down').",
|
|
1193
|
+
"inputSchema": {
|
|
1194
|
+
"type": "object",
|
|
1195
|
+
"properties": {
|
|
1196
|
+
"group": {
|
|
1197
|
+
"type": "integer",
|
|
1198
|
+
"default": -1
|
|
1199
|
+
},
|
|
1200
|
+
"direction": {
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"default": ""
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "new_build_system",
|
|
1209
|
+
"description": "Create a new build system file (WindowCommand).",
|
|
1210
|
+
"inputSchema": {
|
|
1211
|
+
"type": "object",
|
|
1212
|
+
"properties": {}
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"name": "new_file",
|
|
1217
|
+
"description": "Create a new untitled file in the current window (File \u2192 New File).",
|
|
1218
|
+
"inputSchema": {
|
|
1219
|
+
"type": "object",
|
|
1220
|
+
"properties": {}
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "new_file_at",
|
|
1225
|
+
"description": "Create a new file at the given path (WindowCommand). Pass 'path' in args.",
|
|
1226
|
+
"inputSchema": {
|
|
1227
|
+
"type": "object",
|
|
1228
|
+
"properties": {
|
|
1229
|
+
"path": {
|
|
1230
|
+
"type": "string"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"required": [
|
|
1234
|
+
"path"
|
|
1235
|
+
]
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"name": "new_folder",
|
|
1240
|
+
"description": "Create a new folder in the current project (WindowCommand).",
|
|
1241
|
+
"inputSchema": {
|
|
1242
|
+
"type": "object",
|
|
1243
|
+
"properties": {}
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "new_pane",
|
|
1248
|
+
"description": "Create a new pane in the active window (WindowCommand).",
|
|
1249
|
+
"inputSchema": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"properties": {}
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "new_plugin",
|
|
1256
|
+
"description": "Create a new plugin file in Packages/User (WindowCommand).",
|
|
1257
|
+
"inputSchema": {
|
|
1258
|
+
"type": "object",
|
|
1259
|
+
"properties": {}
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"name": "new_snippet",
|
|
1264
|
+
"description": "Create a new snippet file in Packages/User (WindowCommand).",
|
|
1265
|
+
"inputSchema": {
|
|
1266
|
+
"type": "object",
|
|
1267
|
+
"properties": {}
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "new_syntax",
|
|
1272
|
+
"description": "Create a new syntax definition file in Packages/User (WindowCommand).",
|
|
1273
|
+
"inputSchema": {
|
|
1274
|
+
"type": "object",
|
|
1275
|
+
"properties": {}
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "new_view",
|
|
1280
|
+
"description": "Create a new untitled view/tab in the current window. Alias of new_file.",
|
|
1281
|
+
"inputSchema": {
|
|
1282
|
+
"type": "object",
|
|
1283
|
+
"properties": {}
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "next_bookmark",
|
|
1288
|
+
"description": "Move the cursor to the next bookmark in the active view.",
|
|
1289
|
+
"inputSchema": {
|
|
1290
|
+
"type": "object",
|
|
1291
|
+
"properties": {}
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"name": "next_pane",
|
|
1296
|
+
"description": "Move focus to the next pane/group in the window.",
|
|
1297
|
+
"inputSchema": {
|
|
1298
|
+
"type": "object",
|
|
1299
|
+
"properties": {}
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "next_result",
|
|
1304
|
+
"description": "Jump to the next find-in-files or build result. Visible in the view (cursor moves).",
|
|
1305
|
+
"inputSchema": {
|
|
1306
|
+
"type": "object",
|
|
1307
|
+
"properties": {}
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "next_view",
|
|
1312
|
+
"description": "Switch to the next view/tab in the current group.",
|
|
1313
|
+
"inputSchema": {
|
|
1314
|
+
"type": "object",
|
|
1315
|
+
"properties": {}
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"name": "next_view_in_stack",
|
|
1320
|
+
"description": "Switch to the next view in the view history stack (Ctrl+Tab equivalent).",
|
|
1321
|
+
"inputSchema": {
|
|
1322
|
+
"type": "object",
|
|
1323
|
+
"properties": {}
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "old_expand_selection_to_paragraph",
|
|
1328
|
+
"description": "Expand the selection to the surrounding paragraph (legacy TextCommand, kept for compatibility).",
|
|
1329
|
+
"inputSchema": {
|
|
1330
|
+
"type": "object",
|
|
1331
|
+
"properties": {}
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"name": "old_wrap_lines",
|
|
1336
|
+
"description": "Wrap the selection at the configured wrap width using the legacy paragraph algorithm (TextCommand, kept for compatibility).",
|
|
1337
|
+
"inputSchema": {
|
|
1338
|
+
"type": "object",
|
|
1339
|
+
"properties": {
|
|
1340
|
+
"width": {
|
|
1341
|
+
"type": "integer",
|
|
1342
|
+
"description": "Optional wrap width in columns. 0 = use the view's wrap_width setting."
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"name": "open_containing_folder",
|
|
1349
|
+
"description": "Open the OS file manager at the directory containing the active file (WindowCommand).",
|
|
1350
|
+
"inputSchema": {
|
|
1351
|
+
"type": "object",
|
|
1352
|
+
"properties": {}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "open_context_url",
|
|
1357
|
+
"description": "Open the URL under the cursor in the default browser (TextCommand).",
|
|
1358
|
+
"inputSchema": {
|
|
1359
|
+
"type": "object",
|
|
1360
|
+
"properties": {}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "open_control_panel",
|
|
1365
|
+
"description": "Open (or focus) the Claude MCP Control Panel: an interactive minihtml dashboard in a dedicated Sublime view, listing MCP servers with clickable Enable/Disable toggle links. State persists on the view and the status line reflects changes.",
|
|
1366
|
+
"inputSchema": {
|
|
1367
|
+
"type": "object",
|
|
1368
|
+
"properties": {}
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "open_file",
|
|
1373
|
+
"description": "Open a file in Sublime Text, optionally jumping to a specific line and column.",
|
|
1374
|
+
"inputSchema": {
|
|
1375
|
+
"type": "object",
|
|
1376
|
+
"properties": {
|
|
1377
|
+
"path": {
|
|
1378
|
+
"type": "string"
|
|
1379
|
+
},
|
|
1380
|
+
"line": {
|
|
1381
|
+
"type": "integer",
|
|
1382
|
+
"default": 0
|
|
1383
|
+
},
|
|
1384
|
+
"col": {
|
|
1385
|
+
"type": "integer",
|
|
1386
|
+
"default": 0
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
"required": [
|
|
1390
|
+
"path"
|
|
1391
|
+
]
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "open_file_settings",
|
|
1396
|
+
"description": "Open the syntax-specific settings file for the active view (WindowCommand).",
|
|
1397
|
+
"inputSchema": {
|
|
1398
|
+
"type": "object",
|
|
1399
|
+
"properties": {}
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "open_folder",
|
|
1404
|
+
"description": "Open a folder in a new window (WindowCommand). Pass 'path' in args.",
|
|
1405
|
+
"inputSchema": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"path": {
|
|
1409
|
+
"type": "string"
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
"required": [
|
|
1413
|
+
"path"
|
|
1414
|
+
]
|
|
1415
|
+
}
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"name": "open_in_browser",
|
|
1419
|
+
"description": "Open the current file in the default browser (TextCommand).",
|
|
1420
|
+
"inputSchema": {
|
|
1421
|
+
"type": "object",
|
|
1422
|
+
"properties": {}
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"name": "open_symbol_definition",
|
|
1427
|
+
"description": "Open the definition of a named symbol (WindowCommand). Pass 'symbol'.",
|
|
1428
|
+
"inputSchema": {
|
|
1429
|
+
"type": "object",
|
|
1430
|
+
"properties": {
|
|
1431
|
+
"symbol": {
|
|
1432
|
+
"type": "string"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
"required": [
|
|
1436
|
+
"symbol"
|
|
1437
|
+
]
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"name": "paste",
|
|
1442
|
+
"description": "Paste the clipboard contents at the cursor(s), replacing any selection.",
|
|
1443
|
+
"inputSchema": {
|
|
1444
|
+
"type": "object",
|
|
1445
|
+
"properties": {}
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "paste_and_indent",
|
|
1450
|
+
"description": "Paste and re-indent the pasted lines to match surrounding indentation.",
|
|
1451
|
+
"inputSchema": {
|
|
1452
|
+
"type": "object",
|
|
1453
|
+
"properties": {}
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"name": "paste_from_history",
|
|
1458
|
+
"description": "Open the paste-from-history panel so the user can pick a previously cut/copied snippet to paste.",
|
|
1459
|
+
"inputSchema": {
|
|
1460
|
+
"type": "object",
|
|
1461
|
+
"properties": {}
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"name": "permute_lines",
|
|
1466
|
+
"description": "Permute (shuffle) the lines in the current selection into a random order.",
|
|
1467
|
+
"inputSchema": {
|
|
1468
|
+
"type": "object",
|
|
1469
|
+
"properties": {}
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "permute_selection",
|
|
1474
|
+
"description": "Permute (shuffle) the selections themselves into a random order.",
|
|
1475
|
+
"inputSchema": {
|
|
1476
|
+
"type": "object",
|
|
1477
|
+
"properties": {}
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"name": "play_macro",
|
|
1482
|
+
"description": "Alias of run_macro \u2014 play back the most recently recorded macro.",
|
|
1483
|
+
"inputSchema": {
|
|
1484
|
+
"type": "object",
|
|
1485
|
+
"properties": {}
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "prev_bookmark",
|
|
1490
|
+
"description": "Move the cursor to the previous bookmark in the active view.",
|
|
1491
|
+
"inputSchema": {
|
|
1492
|
+
"type": "object",
|
|
1493
|
+
"properties": {}
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"name": "prev_pane",
|
|
1498
|
+
"description": "Move focus to the previous pane/group in the window.",
|
|
1499
|
+
"inputSchema": {
|
|
1500
|
+
"type": "object",
|
|
1501
|
+
"properties": {}
|
|
1502
|
+
}
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "prev_result",
|
|
1506
|
+
"description": "Jump to the previous find-in-files or build result. Visible in the view (cursor moves).",
|
|
1507
|
+
"inputSchema": {
|
|
1508
|
+
"type": "object",
|
|
1509
|
+
"properties": {}
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "prev_view",
|
|
1514
|
+
"description": "Switch to the previous view/tab in the current group.",
|
|
1515
|
+
"inputSchema": {
|
|
1516
|
+
"type": "object",
|
|
1517
|
+
"properties": {}
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"name": "prev_view_in_stack",
|
|
1522
|
+
"description": "Switch to the previous view in the view history stack (Ctrl+Shift+Tab equivalent).",
|
|
1523
|
+
"inputSchema": {
|
|
1524
|
+
"type": "object",
|
|
1525
|
+
"properties": {}
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"name": "profile_plugins",
|
|
1530
|
+
"description": "Profile plugin load times (ApplicationCommand).",
|
|
1531
|
+
"inputSchema": {
|
|
1532
|
+
"type": "object",
|
|
1533
|
+
"properties": {}
|
|
1534
|
+
}
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"name": "profile_syntax_definition",
|
|
1538
|
+
"description": "Profile a syntax definition for performance issues (ApplicationCommand).",
|
|
1539
|
+
"inputSchema": {
|
|
1540
|
+
"type": "object",
|
|
1541
|
+
"properties": {}
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"name": "prompt_goto_line",
|
|
1546
|
+
"description": "Open the Goto Line prompt (WindowCommand).",
|
|
1547
|
+
"inputSchema": {
|
|
1548
|
+
"type": "object",
|
|
1549
|
+
"properties": {}
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"name": "quick_panel",
|
|
1554
|
+
"description": "Open the Goto Anything overlay (WindowCommand show_overlay). Optional 'show_files' (bool) and 'text'.",
|
|
1555
|
+
"inputSchema": {
|
|
1556
|
+
"type": "object",
|
|
1557
|
+
"properties": {
|
|
1558
|
+
"show_files": {
|
|
1559
|
+
"type": "boolean"
|
|
1560
|
+
},
|
|
1561
|
+
"text": {
|
|
1562
|
+
"type": "string"
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"name": "redo",
|
|
1569
|
+
"description": "Redo the last undone edit in the active file.",
|
|
1570
|
+
"inputSchema": {
|
|
1571
|
+
"type": "object",
|
|
1572
|
+
"properties": {}
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"name": "reindent",
|
|
1577
|
+
"description": "Re-indent the current selection(s) so each line's indentation matches its nesting depth.",
|
|
1578
|
+
"inputSchema": {
|
|
1579
|
+
"type": "object",
|
|
1580
|
+
"properties": {}
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"name": "remove_folder",
|
|
1585
|
+
"description": "Remove a folder from the current project by path.",
|
|
1586
|
+
"inputSchema": {
|
|
1587
|
+
"type": "object",
|
|
1588
|
+
"properties": {
|
|
1589
|
+
"path": {
|
|
1590
|
+
"type": "string"
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1593
|
+
"required": [
|
|
1594
|
+
"path"
|
|
1595
|
+
]
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"name": "rename_file",
|
|
1600
|
+
"description": "Rename the active file (WindowCommand). Pass 'path' for the new name.",
|
|
1601
|
+
"inputSchema": {
|
|
1602
|
+
"type": "object",
|
|
1603
|
+
"properties": {
|
|
1604
|
+
"path": {
|
|
1605
|
+
"type": "string"
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
"required": [
|
|
1609
|
+
"path"
|
|
1610
|
+
]
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"name": "reopen_closed_file",
|
|
1615
|
+
"description": "Reopen the most recently closed file (File \u2192 Reopen Closed File).",
|
|
1616
|
+
"inputSchema": {
|
|
1617
|
+
"type": "object",
|
|
1618
|
+
"properties": {}
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"name": "replace_in_files",
|
|
1623
|
+
"description": "Run the Replace half of Find in Files (Ctrl+Shift+H \u2192 Replace All) and show the diff preview panel so the user can review every replacement before it is committed. Same `where` syntax as find_in_files. Replace string may be empty for deletion. Regex capture-group backrefs ($1, $2) supported when regex=True.",
|
|
1624
|
+
"inputSchema": {
|
|
1625
|
+
"type": "object",
|
|
1626
|
+
"properties": {
|
|
1627
|
+
"pattern": {
|
|
1628
|
+
"type": "string"
|
|
1629
|
+
},
|
|
1630
|
+
"replace": {
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"description": "Replacement string (use empty string for deletion)"
|
|
1633
|
+
},
|
|
1634
|
+
"where": {
|
|
1635
|
+
"type": "string"
|
|
1636
|
+
},
|
|
1637
|
+
"case_sensitive": {
|
|
1638
|
+
"type": "boolean",
|
|
1639
|
+
"default": false
|
|
1640
|
+
},
|
|
1641
|
+
"regex": {
|
|
1642
|
+
"type": "boolean",
|
|
1643
|
+
"default": false
|
|
1644
|
+
},
|
|
1645
|
+
"whole_word": {
|
|
1646
|
+
"type": "boolean",
|
|
1647
|
+
"default": false
|
|
1648
|
+
},
|
|
1649
|
+
"preserve_case": {
|
|
1650
|
+
"type": "boolean",
|
|
1651
|
+
"default": false
|
|
1652
|
+
},
|
|
1653
|
+
"show_panel": {
|
|
1654
|
+
"type": "boolean",
|
|
1655
|
+
"default": true
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
"required": [
|
|
1659
|
+
"pattern",
|
|
1660
|
+
"replace"
|
|
1661
|
+
]
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"name": "replace_lines",
|
|
1666
|
+
"description": "Replace lines begin through end (inclusive, 1-based) in the active file with text.\nPass path to target a specific open file regardless of which tab is focused.\nUse index (0-based, from get_open_files) to target a nameless tab by position.",
|
|
1667
|
+
"inputSchema": {
|
|
1668
|
+
"type": "object",
|
|
1669
|
+
"properties": {
|
|
1670
|
+
"begin": {
|
|
1671
|
+
"type": "integer"
|
|
1672
|
+
},
|
|
1673
|
+
"end": {
|
|
1674
|
+
"type": "integer"
|
|
1675
|
+
},
|
|
1676
|
+
"text": {
|
|
1677
|
+
"type": "string"
|
|
1678
|
+
},
|
|
1679
|
+
"path": {
|
|
1680
|
+
"type": "string",
|
|
1681
|
+
"default": ""
|
|
1682
|
+
},
|
|
1683
|
+
"index": {
|
|
1684
|
+
"type": "integer",
|
|
1685
|
+
"default": -1
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
"required": [
|
|
1689
|
+
"begin",
|
|
1690
|
+
"end",
|
|
1691
|
+
"text"
|
|
1692
|
+
]
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"name": "replace_selection",
|
|
1697
|
+
"description": "Replace the current selection(s) with text.",
|
|
1698
|
+
"inputSchema": {
|
|
1699
|
+
"type": "object",
|
|
1700
|
+
"properties": {
|
|
1701
|
+
"text": {
|
|
1702
|
+
"type": "string"
|
|
1703
|
+
}
|
|
1704
|
+
},
|
|
1705
|
+
"required": [
|
|
1706
|
+
"text"
|
|
1707
|
+
]
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "revert_file",
|
|
1712
|
+
"description": "Revert the active file to its last saved state, discarding unsaved changes.",
|
|
1713
|
+
"inputSchema": {
|
|
1714
|
+
"type": "object",
|
|
1715
|
+
"properties": {}
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "rot13",
|
|
1720
|
+
"description": "Apply the ROT13 cipher to the current selection (TextCommand). Useful for obscuring spoiler text or round-tripping text.",
|
|
1721
|
+
"inputSchema": {
|
|
1722
|
+
"type": "object",
|
|
1723
|
+
"properties": {}
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"name": "run_build",
|
|
1728
|
+
"description": "Trigger the current build system, or pass cmd/shell_cmd to run a specific command.",
|
|
1729
|
+
"inputSchema": {
|
|
1730
|
+
"type": "object",
|
|
1731
|
+
"properties": {
|
|
1732
|
+
"cmd": {
|
|
1733
|
+
"type": "array",
|
|
1734
|
+
"items": {
|
|
1735
|
+
"type": "string"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
"shell_cmd": {
|
|
1739
|
+
"type": "string"
|
|
1740
|
+
},
|
|
1741
|
+
"working_dir": {
|
|
1742
|
+
"type": "string",
|
|
1743
|
+
"default": ""
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"name": "run_command",
|
|
1750
|
+
"description": "Run any Sublime Text command. scope='window' (default) or 'view'.",
|
|
1751
|
+
"inputSchema": {
|
|
1752
|
+
"type": "object",
|
|
1753
|
+
"properties": {
|
|
1754
|
+
"command": {
|
|
1755
|
+
"type": "string"
|
|
1756
|
+
},
|
|
1757
|
+
"args": {
|
|
1758
|
+
"type": "object"
|
|
1759
|
+
},
|
|
1760
|
+
"scope": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"default": "window"
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
"required": [
|
|
1766
|
+
"command"
|
|
1767
|
+
]
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"name": "run_macro",
|
|
1772
|
+
"description": "Play back the most recently recorded macro at the cursor.",
|
|
1773
|
+
"inputSchema": {
|
|
1774
|
+
"type": "object",
|
|
1775
|
+
"properties": {}
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "run_syntax_tests",
|
|
1780
|
+
"description": "Run syntax tests on the active syntax file (WindowCommand).",
|
|
1781
|
+
"inputSchema": {
|
|
1782
|
+
"type": "object",
|
|
1783
|
+
"properties": {}
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "save_all",
|
|
1788
|
+
"description": "Save all open files.",
|
|
1789
|
+
"inputSchema": {
|
|
1790
|
+
"type": "object",
|
|
1791
|
+
"properties": {}
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "save_file",
|
|
1796
|
+
"description": "Save a file. Pass path to save a specific open file; omit path to save the active file.",
|
|
1797
|
+
"inputSchema": {
|
|
1798
|
+
"type": "object",
|
|
1799
|
+
"properties": {
|
|
1800
|
+
"path": {
|
|
1801
|
+
"type": "string",
|
|
1802
|
+
"default": ""
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"name": "scroll_to_bof",
|
|
1809
|
+
"description": "Scroll the active view so the beginning of the file is visible (does not move the cursor).",
|
|
1810
|
+
"inputSchema": {
|
|
1811
|
+
"type": "object",
|
|
1812
|
+
"properties": {}
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
"name": "scroll_to_eof",
|
|
1817
|
+
"description": "Scroll the active view so the end of the file is visible (does not move the cursor).",
|
|
1818
|
+
"inputSchema": {
|
|
1819
|
+
"type": "object",
|
|
1820
|
+
"properties": {}
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"name": "search_packages",
|
|
1825
|
+
"description": "Search Package Control for installable Sublime Text packages. Returns name, description, author, homepage, labels, and last_modified for each match. Searches both package names and descriptions.",
|
|
1826
|
+
"inputSchema": {
|
|
1827
|
+
"type": "object",
|
|
1828
|
+
"properties": {
|
|
1829
|
+
"query": {
|
|
1830
|
+
"type": "string",
|
|
1831
|
+
"description": "Search term (name or description). Empty returns all."
|
|
1832
|
+
},
|
|
1833
|
+
"limit": {
|
|
1834
|
+
"type": "integer",
|
|
1835
|
+
"default": 20,
|
|
1836
|
+
"description": "Max results (1-100)."
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
"name": "select_all",
|
|
1843
|
+
"description": "Select the entire contents of the active view (Ctrl+A equivalent).",
|
|
1844
|
+
"inputSchema": {
|
|
1845
|
+
"type": "object",
|
|
1846
|
+
"properties": {}
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"name": "select_all_bookmarks",
|
|
1851
|
+
"description": "Select every line containing a bookmark in the active view.",
|
|
1852
|
+
"inputSchema": {
|
|
1853
|
+
"type": "object",
|
|
1854
|
+
"properties": {}
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"name": "select_color_scheme",
|
|
1859
|
+
"description": "Open the color scheme picker (WindowCommand).",
|
|
1860
|
+
"inputSchema": {
|
|
1861
|
+
"type": "object",
|
|
1862
|
+
"properties": {}
|
|
1863
|
+
}
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"name": "select_lines",
|
|
1867
|
+
"description": "Select lines begin through end (1-based, inclusive). end defaults to begin.",
|
|
1868
|
+
"inputSchema": {
|
|
1869
|
+
"type": "object",
|
|
1870
|
+
"properties": {
|
|
1871
|
+
"begin": {
|
|
1872
|
+
"type": "integer"
|
|
1873
|
+
},
|
|
1874
|
+
"end": {
|
|
1875
|
+
"type": "integer",
|
|
1876
|
+
"default": 0
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
"required": [
|
|
1880
|
+
"begin"
|
|
1881
|
+
]
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"name": "select_theme",
|
|
1886
|
+
"description": "Open the theme picker (WindowCommand).",
|
|
1887
|
+
"inputSchema": {
|
|
1888
|
+
"type": "object",
|
|
1889
|
+
"properties": {}
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"name": "select_to_mark",
|
|
1894
|
+
"description": "Select the text between the cursor and the previously set mark (TextCommand).",
|
|
1895
|
+
"inputSchema": {
|
|
1896
|
+
"type": "object",
|
|
1897
|
+
"properties": {}
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"name": "send_to_view",
|
|
1902
|
+
"description": "Send a string to any open tab by name (partial match, case-insensitive).\nInserts the text at the cursor of the resolved view using the standard insert command; returns an error if the view is read-only.\nUse index (0-based, from get_open_files) to target a tab by position instead of name.\nOmit both name and index to target the active view.",
|
|
1903
|
+
"inputSchema": {
|
|
1904
|
+
"type": "object",
|
|
1905
|
+
"properties": {
|
|
1906
|
+
"text": {
|
|
1907
|
+
"type": "string"
|
|
1908
|
+
},
|
|
1909
|
+
"name": {
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"default": ""
|
|
1912
|
+
},
|
|
1913
|
+
"index": {
|
|
1914
|
+
"type": "integer",
|
|
1915
|
+
"default": -1
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
"required": [
|
|
1919
|
+
"text"
|
|
1920
|
+
]
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "set_encoding",
|
|
1925
|
+
"description": "Set the character encoding of the active file (e.g. 'UTF-8', 'Western (Windows 1252)').",
|
|
1926
|
+
"inputSchema": {
|
|
1927
|
+
"type": "object",
|
|
1928
|
+
"properties": {
|
|
1929
|
+
"encoding": {
|
|
1930
|
+
"type": "string"
|
|
1931
|
+
}
|
|
1932
|
+
},
|
|
1933
|
+
"required": [
|
|
1934
|
+
"encoding"
|
|
1935
|
+
]
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"name": "set_indent_spaces",
|
|
1940
|
+
"description": "Set the active view to use spaces for indentation.",
|
|
1941
|
+
"inputSchema": {
|
|
1942
|
+
"type": "object",
|
|
1943
|
+
"properties": {}
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "set_indent_tabs",
|
|
1948
|
+
"description": "Set the active view to use tabs for indentation.",
|
|
1949
|
+
"inputSchema": {
|
|
1950
|
+
"type": "object",
|
|
1951
|
+
"properties": {}
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"name": "set_layout",
|
|
1956
|
+
"description": "Set the window pane layout. layout must be a ST layout dict with cols, rows, cells keys.",
|
|
1957
|
+
"inputSchema": {
|
|
1958
|
+
"type": "object",
|
|
1959
|
+
"properties": {
|
|
1960
|
+
"layout": {
|
|
1961
|
+
"type": "object"
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
"required": [
|
|
1965
|
+
"layout"
|
|
1966
|
+
]
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"name": "set_mark",
|
|
1971
|
+
"description": "Set a mark at the current cursor position (TextCommand). Used with select_to_mark/swap_with_mark/delete_to_mark.",
|
|
1972
|
+
"inputSchema": {
|
|
1973
|
+
"type": "object",
|
|
1974
|
+
"properties": {}
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"name": "set_max_columns",
|
|
1979
|
+
"description": "Set the maximum number of columns for the current layout (WindowCommand). Pass 'cols' integer.",
|
|
1980
|
+
"inputSchema": {
|
|
1981
|
+
"type": "object",
|
|
1982
|
+
"properties": {
|
|
1983
|
+
"cols": {
|
|
1984
|
+
"type": "integer"
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
"required": [
|
|
1988
|
+
"cols"
|
|
1989
|
+
]
|
|
1990
|
+
}
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"name": "set_setting",
|
|
1994
|
+
"description": "Set a Sublime Text setting by key. scope='view' (default) or 'window'.",
|
|
1995
|
+
"inputSchema": {
|
|
1996
|
+
"type": "object",
|
|
1997
|
+
"properties": {
|
|
1998
|
+
"key": {
|
|
1999
|
+
"type": "string"
|
|
2000
|
+
},
|
|
2001
|
+
"value": {},
|
|
2002
|
+
"scope": {
|
|
2003
|
+
"type": "string",
|
|
2004
|
+
"default": "view"
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
"required": [
|
|
2008
|
+
"key",
|
|
2009
|
+
"value"
|
|
2010
|
+
]
|
|
2011
|
+
}
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"name": "set_status",
|
|
2015
|
+
"description": "Write a message to Sublime Text's status bar.",
|
|
2016
|
+
"inputSchema": {
|
|
2017
|
+
"type": "object",
|
|
2018
|
+
"properties": {
|
|
2019
|
+
"value": {
|
|
2020
|
+
"type": "string"
|
|
2021
|
+
},
|
|
2022
|
+
"key": {
|
|
2023
|
+
"type": "string",
|
|
2024
|
+
"default": "sublime_mcp"
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
"required": [
|
|
2028
|
+
"value"
|
|
2029
|
+
]
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"name": "set_syntax",
|
|
2034
|
+
"description": "Set the syntax of the active file by name (case-insensitive partial match is fine).",
|
|
2035
|
+
"inputSchema": {
|
|
2036
|
+
"type": "object",
|
|
2037
|
+
"properties": {
|
|
2038
|
+
"name": {
|
|
2039
|
+
"type": "string"
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"required": [
|
|
2043
|
+
"name"
|
|
2044
|
+
]
|
|
2045
|
+
}
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"name": "show_at_center",
|
|
2049
|
+
"description": "Scroll the active view so the current cursor line is centered in the window.",
|
|
2050
|
+
"inputSchema": {
|
|
2051
|
+
"type": "object",
|
|
2052
|
+
"properties": {}
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"name": "show_panel",
|
|
2057
|
+
"description": "Bring an output panel to the front. Use name='exec' for the build panel.",
|
|
2058
|
+
"inputSchema": {
|
|
2059
|
+
"type": "object",
|
|
2060
|
+
"properties": {
|
|
2061
|
+
"name": {
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"default": "exec"
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
"name": "show_scope_name",
|
|
2070
|
+
"description": "Print the syntax scope at the cursor to the ST console (TextCommand). Useful for debugging syntax-highlighting or writing snippet scopes.",
|
|
2071
|
+
"inputSchema": {
|
|
2072
|
+
"type": "object",
|
|
2073
|
+
"properties": {}
|
|
2074
|
+
}
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
"name": "shrink_selection",
|
|
2078
|
+
"description": "Shrink a multi-cursor selection back to a single cursor (reverse of expand_selection).",
|
|
2079
|
+
"inputSchema": {
|
|
2080
|
+
"type": "object",
|
|
2081
|
+
"properties": {}
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"name": "single_selection",
|
|
2086
|
+
"description": "Collapse multiple selections/cursors down to a single selection (Escape equivalent).",
|
|
2087
|
+
"inputSchema": {
|
|
2088
|
+
"type": "object",
|
|
2089
|
+
"properties": {}
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"name": "sort_lines",
|
|
2094
|
+
"description": "Sort the selected lines (or all lines if nothing is selected).",
|
|
2095
|
+
"inputSchema": {
|
|
2096
|
+
"type": "object",
|
|
2097
|
+
"properties": {
|
|
2098
|
+
"case_sensitive": {
|
|
2099
|
+
"type": "boolean",
|
|
2100
|
+
"default": false
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"name": "sort_selection",
|
|
2107
|
+
"description": "Sort the selected lines alphabetically (locale-aware).",
|
|
2108
|
+
"inputSchema": {
|
|
2109
|
+
"type": "object",
|
|
2110
|
+
"properties": {}
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"name": "split_line",
|
|
2115
|
+
"description": "Split the line at the cursor position (Ctrl+Enter equivalent in some keymaps).",
|
|
2116
|
+
"inputSchema": {
|
|
2117
|
+
"type": "object",
|
|
2118
|
+
"properties": {}
|
|
2119
|
+
}
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"name": "split_selection_into_lines",
|
|
2123
|
+
"description": "Split the current selection into one cursor per line (Ctrl+Shift+L).",
|
|
2124
|
+
"inputSchema": {
|
|
2125
|
+
"type": "object",
|
|
2126
|
+
"properties": {}
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"name": "str_replace_based_edit_tool",
|
|
2131
|
+
"description": "ST-native file editor implementing the standard str_replace_based_edit_tool interface.\nEdits appear live in Sublime Text with full undo (Ctrl+Z), gutter diff markers,\nand 30-second highlight annotations showing what changed.\n\ncommand='str_replace': replace old_str with new_str in path.\n old_str must match exactly once (whitespace-sensitive).\n Returns error if 0 or 2+ matches, listing ambiguous line numbers.\n\ncommand='insert': insert insert_text after line insert_line (1-based).\n insert_line=0 inserts at the very start of the file.\n\ncommand='create': create a new file at path with file_text content.\n Syntax is auto-detected from the file extension. Errors if path exists.\n\ncommand='view': return file content with 1-based line numbers prepended.\n Optional view_range=[start, end] to read a slice (end=-1 for EOF).\n\nAll commands auto-open the file in ST if not already open.",
|
|
2132
|
+
"inputSchema": {
|
|
2133
|
+
"type": "object",
|
|
2134
|
+
"properties": {
|
|
2135
|
+
"command": {
|
|
2136
|
+
"type": "string"
|
|
2137
|
+
},
|
|
2138
|
+
"path": {
|
|
2139
|
+
"type": "string",
|
|
2140
|
+
"default": ""
|
|
2141
|
+
},
|
|
2142
|
+
"old_str": {
|
|
2143
|
+
"type": "string"
|
|
2144
|
+
},
|
|
2145
|
+
"new_str": {
|
|
2146
|
+
"type": "string"
|
|
2147
|
+
},
|
|
2148
|
+
"insert_line": {
|
|
2149
|
+
"type": "integer"
|
|
2150
|
+
},
|
|
2151
|
+
"insert_text": {
|
|
2152
|
+
"type": "string"
|
|
2153
|
+
},
|
|
2154
|
+
"file_text": {
|
|
2155
|
+
"type": "string"
|
|
2156
|
+
},
|
|
2157
|
+
"view_range": {
|
|
2158
|
+
"type": "array",
|
|
2159
|
+
"items": {
|
|
2160
|
+
"type": "integer"
|
|
2161
|
+
},
|
|
2162
|
+
"minItems": 2,
|
|
2163
|
+
"maxItems": 2
|
|
2164
|
+
}
|
|
2165
|
+
},
|
|
2166
|
+
"required": [
|
|
2167
|
+
"command"
|
|
2168
|
+
]
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"name": "swap_case",
|
|
2173
|
+
"description": "Swap the case of each character in the current selection(s) (upper\u2194lower).",
|
|
2174
|
+
"inputSchema": {
|
|
2175
|
+
"type": "object",
|
|
2176
|
+
"properties": {}
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"name": "swap_line_down",
|
|
2181
|
+
"description": "Swap the current line(s) with the line below.",
|
|
2182
|
+
"inputSchema": {
|
|
2183
|
+
"type": "object",
|
|
2184
|
+
"properties": {}
|
|
2185
|
+
}
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"name": "swap_line_up",
|
|
2189
|
+
"description": "Swap the current line(s) with the line above.",
|
|
2190
|
+
"inputSchema": {
|
|
2191
|
+
"type": "object",
|
|
2192
|
+
"properties": {}
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"name": "swap_with_mark",
|
|
2197
|
+
"description": "Swap the cursor position with the previously set mark (TextCommand).",
|
|
2198
|
+
"inputSchema": {
|
|
2199
|
+
"type": "object",
|
|
2200
|
+
"properties": {}
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "switch_file",
|
|
2205
|
+
"description": "Switch between files with the same base name and different extensions (WindowCommand).",
|
|
2206
|
+
"inputSchema": {
|
|
2207
|
+
"type": "object",
|
|
2208
|
+
"properties": {}
|
|
2209
|
+
}
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
"name": "syntax_definition_compatibility",
|
|
2213
|
+
"description": "Check syntax definition compatibility (ApplicationCommand).",
|
|
2214
|
+
"inputSchema": {
|
|
2215
|
+
"type": "object",
|
|
2216
|
+
"properties": {}
|
|
2217
|
+
}
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"name": "tab",
|
|
2221
|
+
"description": "Indent the current selection by one indentation level (TextCommand). Equivalent to Tab when there is a selection.",
|
|
2222
|
+
"inputSchema": {
|
|
2223
|
+
"type": "object",
|
|
2224
|
+
"properties": {}
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"name": "title_case",
|
|
2229
|
+
"description": "Convert the current selection(s) to Title Case.",
|
|
2230
|
+
"inputSchema": {
|
|
2231
|
+
"type": "object",
|
|
2232
|
+
"properties": {}
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"name": "toggle_bookmark",
|
|
2237
|
+
"description": "Toggle a bookmark on the current line of the active view.",
|
|
2238
|
+
"inputSchema": {
|
|
2239
|
+
"type": "object",
|
|
2240
|
+
"properties": {}
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"name": "toggle_case",
|
|
2245
|
+
"description": "Alias of swap_case \u2014 toggle the case of each character in the selection.",
|
|
2246
|
+
"inputSchema": {
|
|
2247
|
+
"type": "object",
|
|
2248
|
+
"properties": {}
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"name": "toggle_comment",
|
|
2253
|
+
"description": "Toggle line comment (or block comment if block=true) on the current selection.",
|
|
2254
|
+
"inputSchema": {
|
|
2255
|
+
"type": "object",
|
|
2256
|
+
"properties": {
|
|
2257
|
+
"block": {
|
|
2258
|
+
"type": "boolean",
|
|
2259
|
+
"default": false
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
"name": "toggle_distraction_free",
|
|
2266
|
+
"description": "Toggle distraction-free mode (hides side bar, minimap, status bar, tabs, etc.).",
|
|
2267
|
+
"inputSchema": {
|
|
2268
|
+
"type": "object",
|
|
2269
|
+
"properties": {}
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
"name": "toggle_full_screen",
|
|
2274
|
+
"description": "Toggle Sublime Text full-screen mode.",
|
|
2275
|
+
"inputSchema": {
|
|
2276
|
+
"type": "object",
|
|
2277
|
+
"properties": {}
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
"name": "toggle_menu",
|
|
2282
|
+
"description": "Show or hide the top menu bar.",
|
|
2283
|
+
"inputSchema": {
|
|
2284
|
+
"type": "object",
|
|
2285
|
+
"properties": {}
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
{
|
|
2289
|
+
"name": "toggle_minimap",
|
|
2290
|
+
"description": "Show or hide the minimap (the zoomed-out code overview on the right gutter).",
|
|
2291
|
+
"inputSchema": {
|
|
2292
|
+
"type": "object",
|
|
2293
|
+
"properties": {}
|
|
2294
|
+
}
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "toggle_record_macro",
|
|
2298
|
+
"description": "Start or stop recording a macro (keystrokes are captured until this is called again).",
|
|
2299
|
+
"inputSchema": {
|
|
2300
|
+
"type": "object",
|
|
2301
|
+
"properties": {}
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"name": "toggle_side_bar",
|
|
2306
|
+
"description": "Show or hide the left side bar (folder tree). Distinct from toggle_sidebar which is the MCP control-panel toggle.",
|
|
2307
|
+
"inputSchema": {
|
|
2308
|
+
"type": "object",
|
|
2309
|
+
"properties": {}
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
"name": "toggle_sidebar",
|
|
2314
|
+
"description": "Show or hide the Sublime Text sidebar.",
|
|
2315
|
+
"inputSchema": {
|
|
2316
|
+
"type": "object",
|
|
2317
|
+
"properties": {}
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"name": "toggle_status_bar",
|
|
2322
|
+
"description": "Show or hide the bottom status bar.",
|
|
2323
|
+
"inputSchema": {
|
|
2324
|
+
"type": "object",
|
|
2325
|
+
"properties": {}
|
|
2326
|
+
}
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
"name": "toggle_tabs",
|
|
2330
|
+
"description": "Show or hide the tab bar at the top of the view area.",
|
|
2331
|
+
"inputSchema": {
|
|
2332
|
+
"type": "object",
|
|
2333
|
+
"properties": {}
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"name": "transformer",
|
|
2338
|
+
"description": "Apply a transformer (case conversion, encoding, etc.) to the current selection (TextCommand). A general-purpose text-transform base command.",
|
|
2339
|
+
"inputSchema": {
|
|
2340
|
+
"type": "object",
|
|
2341
|
+
"properties": {}
|
|
2342
|
+
}
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"name": "transpose",
|
|
2346
|
+
"description": "Transpose characters at the cursor (swap the two characters on either side of the cursor). Ctrl+T equivalent.",
|
|
2347
|
+
"inputSchema": {
|
|
2348
|
+
"type": "object",
|
|
2349
|
+
"properties": {}
|
|
2350
|
+
}
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
"name": "transpose_chars",
|
|
2354
|
+
"description": "Alias of transpose \u2014 swap the two characters adjacent to the cursor.",
|
|
2355
|
+
"inputSchema": {
|
|
2356
|
+
"type": "object",
|
|
2357
|
+
"properties": {}
|
|
2358
|
+
}
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "trim_trailing_white_space",
|
|
2362
|
+
"description": "Remove trailing whitespace from every line in the current selection (or the whole file if no selection).",
|
|
2363
|
+
"inputSchema": {
|
|
2364
|
+
"type": "object",
|
|
2365
|
+
"properties": {}
|
|
2366
|
+
}
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "trim_whitespace",
|
|
2370
|
+
"description": "Alias of trim_trailing_white_space \u2014 remove trailing whitespace from the selection/file.",
|
|
2371
|
+
"inputSchema": {
|
|
2372
|
+
"type": "object",
|
|
2373
|
+
"properties": {}
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"name": "trim_whitespaces",
|
|
2378
|
+
"description": "Alias of trim_trailing_white_space \u2014 remove trailing whitespace from the selection/file.",
|
|
2379
|
+
"inputSchema": {
|
|
2380
|
+
"type": "object",
|
|
2381
|
+
"properties": {}
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"name": "undo",
|
|
2386
|
+
"description": "Undo the last edit in the active file.",
|
|
2387
|
+
"inputSchema": {
|
|
2388
|
+
"type": "object",
|
|
2389
|
+
"properties": {}
|
|
2390
|
+
}
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"name": "unexpand_tabs",
|
|
2394
|
+
"description": "Convert leading spaces in the current selection (or whole file) to tabs, using the view's tab_size.",
|
|
2395
|
+
"inputSchema": {
|
|
2396
|
+
"type": "object",
|
|
2397
|
+
"properties": {}
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"name": "unindent",
|
|
2402
|
+
"description": "Unindent the current selection(s) by one indentation level (Shift+Tab when there is a selection).",
|
|
2403
|
+
"inputSchema": {
|
|
2404
|
+
"type": "object",
|
|
2405
|
+
"properties": {}
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "upper_case",
|
|
2410
|
+
"description": "Convert the current selection(s) to UPPER CASE.",
|
|
2411
|
+
"inputSchema": {
|
|
2412
|
+
"type": "object",
|
|
2413
|
+
"properties": {}
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"name": "view_resource",
|
|
2418
|
+
"description": "Open a read-only view of a bundled or packaged resource (WindowCommand). Pass 'resource'.",
|
|
2419
|
+
"inputSchema": {
|
|
2420
|
+
"type": "object",
|
|
2421
|
+
"properties": {
|
|
2422
|
+
"resource": {
|
|
2423
|
+
"type": "string"
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
"required": [
|
|
2427
|
+
"resource"
|
|
2428
|
+
]
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
"name": "wrap_block",
|
|
2433
|
+
"description": "Wrap lines in the selection as a block comment using the active syntax's block comment markers (TextCommand).",
|
|
2434
|
+
"inputSchema": {
|
|
2435
|
+
"type": "object",
|
|
2436
|
+
"properties": {}
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
"name": "wrap_lines",
|
|
2441
|
+
"description": "Re-wrap the current selection(s) at the configured wrap width. Alt+Q equivalent.",
|
|
2442
|
+
"inputSchema": {
|
|
2443
|
+
"type": "object",
|
|
2444
|
+
"properties": {
|
|
2445
|
+
"width": {
|
|
2446
|
+
"type": "integer",
|
|
2447
|
+
"default": 0,
|
|
2448
|
+
"description": "Optional wrap width in columns. 0 = use the view's wrap_width setting."
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
"name": "yank",
|
|
2455
|
+
"description": "Yank (paste) the most recently killed/deleted text at the cursor. Emacs-style kill-ring paste.",
|
|
2456
|
+
"inputSchema": {
|
|
2457
|
+
"type": "object",
|
|
2458
|
+
"properties": {}
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
]
|
|
2462
|
+
}
|