@pixerate/editor 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/HistoryManager-DWSLd6Tf.d.ts +150 -0
- package/dist/HistoryManager-DeQQMBCj.d.cts +150 -0
- package/dist/agent/index.cjs +20 -427
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +4 -342
- package/dist/agent/index.d.ts +4 -342
- package/dist/agent/index.js +14 -421
- package/dist/agent/index.js.map +1 -1
- package/dist/animation/index.cjs +6 -2
- package/dist/animation/index.cjs.map +1 -1
- package/dist/animation/index.d.cts +3 -73
- package/dist/animation/index.d.ts +3 -73
- package/dist/animation/index.js +17 -13
- package/dist/{builtins-nMXh9sT3.d.cts → builtins-DxC3aUR2.d.cts} +2 -2
- package/dist/{builtins-haN82vjT.d.ts → builtins-NGxNxQfJ.d.ts} +2 -2
- package/dist/canvas/index.cjs +338 -28
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +109 -4
- package/dist/canvas/index.d.ts +109 -4
- package/dist/canvas/index.js +323 -13
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-36BLROHV.js +438 -0
- package/dist/chunk-36BLROHV.js.map +1 -0
- package/dist/{chunk-OYEFRO3D.cjs → chunk-6MDQKHRH.cjs} +4 -4
- package/dist/{chunk-OYEFRO3D.cjs.map → chunk-6MDQKHRH.cjs.map} +1 -1
- package/dist/{chunk-ARRTP33I.js → chunk-D6S5M7HV.js} +2 -2
- package/dist/{chunk-ARRTP33I.js.map → chunk-D6S5M7HV.js.map} +1 -1
- package/dist/{chunk-MXZJ4PKN.js → chunk-DDADOHJW.js} +8 -8
- package/dist/{chunk-CPOKFNBG.cjs → chunk-I6BZB5ZH.cjs} +2 -2
- package/dist/{chunk-CPOKFNBG.cjs.map → chunk-I6BZB5ZH.cjs.map} +1 -1
- package/dist/chunk-PIIAZV3L.cjs +244 -0
- package/dist/chunk-PIIAZV3L.cjs.map +1 -0
- package/dist/{chunk-G2I4QJOT.cjs → chunk-QKLRAA4T.cjs} +3 -244
- package/dist/chunk-QKLRAA4T.cjs.map +1 -0
- package/dist/{chunk-2H7ZHPEJ.js → chunk-QVZZGT4X.js} +1 -242
- package/dist/chunk-QVZZGT4X.js.map +1 -0
- package/dist/chunk-UB2OY7FD.js +262 -0
- package/dist/chunk-UB2OY7FD.js.map +1 -0
- package/dist/chunk-V7CC7RZ6.cjs +438 -0
- package/dist/chunk-V7CC7RZ6.cjs.map +1 -0
- package/dist/{chunk-PWJARCI4.js → chunk-W7BOBWZD.js} +5 -196
- package/dist/chunk-W7BOBWZD.js.map +1 -0
- package/dist/{chunk-TTYCN6ZH.cjs → chunk-XHRZSB77.cjs} +8 -199
- package/dist/chunk-XHRZSB77.cjs.map +1 -0
- package/dist/chunk-XZ4L3R4K.cjs +262 -0
- package/dist/chunk-XZ4L3R4K.cjs.map +1 -0
- package/dist/chunk-YK57D7PW.js +244 -0
- package/dist/chunk-YK57D7PW.js.map +1 -0
- package/dist/commands/index.cjs +2 -2
- package/dist/commands/index.cjs.map +1 -1
- package/dist/commands/index.d.cts +2 -2
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.js +1 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/easing-DTmX99QG.d.cts +88 -0
- package/dist/easing-DTmX99QG.d.ts +88 -0
- package/dist/extensions/index.cjs +5 -5
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.js +9 -9
- package/dist/generation/index.cjs +2 -2
- package/dist/generation/index.cjs.map +1 -1
- package/dist/generation/index.js +1 -1
- package/dist/generation/index.js.map +1 -1
- package/dist/history/index.cjs +4 -2
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +3 -149
- package/dist/history/index.d.ts +3 -149
- package/dist/history/index.js +5 -3
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index.cjs +15 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +22 -20
- package/dist/index.js.map +1 -1
- package/dist/parameters/index.cjs +1320 -0
- package/dist/parameters/index.cjs.map +1 -0
- package/dist/parameters/index.d.cts +625 -0
- package/dist/parameters/index.d.ts +625 -0
- package/dist/parameters/index.js +1320 -0
- package/dist/parameters/index.js.map +1 -0
- package/dist/tools/index.cjs +31 -0
- package/dist/tools/index.cjs.map +1 -0
- package/dist/tools/index.d.cts +343 -0
- package/dist/tools/index.d.ts +343 -0
- package/dist/tools/index.js +31 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/{types-GT5a5YAX.d.cts → types-DsiXGmjo.d.cts} +1 -1
- package/dist/{types-GT5a5YAX.d.ts → types-DsiXGmjo.d.ts} +1 -1
- package/package.json +11 -1
- package/dist/chunk-2H7ZHPEJ.js.map +0 -1
- package/dist/chunk-G2I4QJOT.cjs.map +0 -1
- package/dist/chunk-PWJARCI4.js.map +0 -1
- package/dist/chunk-TTYCN6ZH.cjs.map +0 -1
- /package/dist/{chunk-MXZJ4PKN.js.map → chunk-DDADOHJW.js.map} +0 -0
package/dist/agent/index.d.cts
CHANGED
|
@@ -2,10 +2,11 @@ import { b as CanvasNode, c as CanvasEdge, X as XYPosition, S as Side } from '..
|
|
|
2
2
|
export { J as JsonSchema, a as JsonSchemaType, S as SchemaValidationError, v as validateJsonSchema } from '../schema-DYDGdYL9.cjs';
|
|
3
3
|
import { A as AgentToolProvider } from '../registry-DnzpgY27.cjs';
|
|
4
4
|
export { a as AgentTool, b as AgentToolHandler, M as McpListToolsResult, c as McpToolContent, d as McpToolDefinition, e as McpToolResult, T as TOOL_NAMESPACE_SEPARATOR, f as ToolCallContext, g as ToolCallError, h as ToolErrorCode, i as ToolRegistry, j as ToolRegistryError, k as ToolRegistryOptions, l as createToolRegistry, t as toToolResult } from '../registry-DnzpgY27.cjs';
|
|
5
|
+
export { EDITOR_MCP_TOOLS, EXPORT_EXCLUDED_SELECTORS, MCP_TOOL_EDIT_CANVAS, MCP_TOOL_EDIT_PROMPT, MCP_TOOL_GET_EDITOR_STATE, MCP_TOOL_VIEW_EDITOR } from '../tools/index.cjs';
|
|
5
6
|
import { Editor } from '@tiptap/core';
|
|
6
7
|
import { S as SpreadsheetController } from '../controller-w6eRTjF8.cjs';
|
|
7
|
-
import {
|
|
8
|
-
import '../types-
|
|
8
|
+
import { C as ComponentCommandTarget } from '../builtins-DxC3aUR2.cjs';
|
|
9
|
+
import '../types-DsiXGmjo.cjs';
|
|
9
10
|
import '../registry-D0GADKc7.cjs';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -196,345 +197,6 @@ declare function toolCallToAgentCommand<TNode extends CanvasNode = CanvasNode, T
|
|
|
196
197
|
*/
|
|
197
198
|
declare function planToolCall<TNode extends CanvasNode = CanvasNode, TEdge extends CanvasEdge = CanvasEdge>(name: string, args: Record<string, any>, snapshot: EditorSnapshot<TNode, TEdge>, options?: Parameters<typeof planAgentCommand>[2]): AgentStep<TNode, TEdge>[];
|
|
198
199
|
|
|
199
|
-
/**
|
|
200
|
-
* Standard MCP Tool Definitions for @pixerate/editor.
|
|
201
|
-
* Compatible with the Model Context Protocol (MCP) tool specification schema.
|
|
202
|
-
*/
|
|
203
|
-
declare const MCP_TOOL_GET_EDITOR_STATE: {
|
|
204
|
-
readonly name: "get_editor_state";
|
|
205
|
-
readonly title: "Get editor state";
|
|
206
|
-
readonly annotations: {
|
|
207
|
-
readonly title: "Get editor state";
|
|
208
|
-
readonly readOnlyHint: true;
|
|
209
|
-
readonly destructiveHint: false;
|
|
210
|
-
readonly idempotentHint: true;
|
|
211
|
-
readonly openWorldHint: false;
|
|
212
|
-
};
|
|
213
|
-
readonly description: "Retrieves the current state of the document, variables, selection, and canvas graph (nodes and edges).";
|
|
214
|
-
readonly inputSchema: {
|
|
215
|
-
readonly type: "object";
|
|
216
|
-
readonly properties: {
|
|
217
|
-
readonly includeDocument: {
|
|
218
|
-
readonly type: "boolean";
|
|
219
|
-
readonly description: "Whether to include the prompt document text and variables (default: true).";
|
|
220
|
-
};
|
|
221
|
-
readonly includeCanvas: {
|
|
222
|
-
readonly type: "boolean";
|
|
223
|
-
readonly description: "Whether to include the canvas nodes and edges (default: true).";
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
declare const MCP_TOOL_EDIT_CANVAS: {
|
|
229
|
-
readonly name: "edit_canvas";
|
|
230
|
-
readonly title: "Edit the canvas";
|
|
231
|
-
readonly annotations: {
|
|
232
|
-
readonly title: "Edit the canvas";
|
|
233
|
-
readonly readOnlyHint: false;
|
|
234
|
-
readonly destructiveHint: true;
|
|
235
|
-
readonly idempotentHint: false;
|
|
236
|
-
readonly openWorldHint: false;
|
|
237
|
-
};
|
|
238
|
-
readonly description: "Applies high-level structural operations to the visual canvas (adding nodes, connecting edges, organizing layout, or moving elements).";
|
|
239
|
-
readonly inputSchema: {
|
|
240
|
-
readonly type: "object";
|
|
241
|
-
readonly properties: {
|
|
242
|
-
readonly operation: {
|
|
243
|
-
readonly type: "string";
|
|
244
|
-
readonly enum: readonly ["add_node", "remove_nodes", "connect", "update_node", "layout", "select", "highlight"];
|
|
245
|
-
readonly description: "The canvas operation to execute.";
|
|
246
|
-
};
|
|
247
|
-
readonly node: {
|
|
248
|
-
readonly type: "object";
|
|
249
|
-
readonly description: "Node definition when operation is add_node. Can omit position to auto-place.";
|
|
250
|
-
};
|
|
251
|
-
readonly nearNodeId: {
|
|
252
|
-
readonly type: "string";
|
|
253
|
-
readonly description: "Anchor node ID to position beside using collision-aware placement.";
|
|
254
|
-
};
|
|
255
|
-
readonly side: {
|
|
256
|
-
readonly type: "string";
|
|
257
|
-
readonly enum: readonly ["top", "right", "bottom", "left"];
|
|
258
|
-
readonly description: "Side of the anchor node to place the new node beside.";
|
|
259
|
-
};
|
|
260
|
-
readonly nodeIds: {
|
|
261
|
-
readonly type: "array";
|
|
262
|
-
readonly items: {
|
|
263
|
-
readonly type: "string";
|
|
264
|
-
};
|
|
265
|
-
readonly description: "Array of node IDs for remove_nodes, select, or highlight.";
|
|
266
|
-
};
|
|
267
|
-
readonly source: {
|
|
268
|
-
readonly type: "string";
|
|
269
|
-
readonly description: "Source node ID for connect operation.";
|
|
270
|
-
};
|
|
271
|
-
readonly target: {
|
|
272
|
-
readonly type: "string";
|
|
273
|
-
readonly description: "Target node ID for connect operation.";
|
|
274
|
-
};
|
|
275
|
-
readonly label: {
|
|
276
|
-
readonly type: "string";
|
|
277
|
-
readonly description: "Optional edge label for connect operation.";
|
|
278
|
-
};
|
|
279
|
-
readonly direction: {
|
|
280
|
-
readonly type: "string";
|
|
281
|
-
readonly enum: readonly ["LR", "TB", "RL", "BT"];
|
|
282
|
-
readonly description: "Layout direction (default LR).";
|
|
283
|
-
};
|
|
284
|
-
readonly incremental: {
|
|
285
|
-
readonly type: "boolean";
|
|
286
|
-
readonly description: "Preserve existing node coordinates and blend layout (default true).";
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
readonly required: readonly ["operation"];
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
declare const MCP_TOOL_EDIT_PROMPT: {
|
|
293
|
-
readonly name: "edit_prompt";
|
|
294
|
-
readonly title: "Edit the prompt";
|
|
295
|
-
readonly annotations: {
|
|
296
|
-
readonly title: "Edit the prompt";
|
|
297
|
-
readonly readOnlyHint: false;
|
|
298
|
-
readonly destructiveHint: true;
|
|
299
|
-
readonly idempotentHint: false;
|
|
300
|
-
readonly openWorldHint: false;
|
|
301
|
-
};
|
|
302
|
-
readonly description: "Applies edits to the prompt template document, including inserting text, replacing ranges, and setting variables.";
|
|
303
|
-
readonly inputSchema: {
|
|
304
|
-
readonly type: "object";
|
|
305
|
-
readonly properties: {
|
|
306
|
-
readonly operation: {
|
|
307
|
-
readonly type: "string";
|
|
308
|
-
readonly enum: readonly ["insert_text", "replace_range", "set_variable", "select"];
|
|
309
|
-
readonly description: "The prompt operation to execute.";
|
|
310
|
-
};
|
|
311
|
-
readonly text: {
|
|
312
|
-
readonly type: "string";
|
|
313
|
-
readonly description: "Text to insert or replace.";
|
|
314
|
-
};
|
|
315
|
-
readonly at: {
|
|
316
|
-
readonly type: "number";
|
|
317
|
-
readonly description: "Position to insert text at.";
|
|
318
|
-
};
|
|
319
|
-
readonly from: {
|
|
320
|
-
readonly type: "number";
|
|
321
|
-
readonly description: "Start offset for replace_range or select.";
|
|
322
|
-
};
|
|
323
|
-
readonly to: {
|
|
324
|
-
readonly type: "number";
|
|
325
|
-
readonly description: "End offset for replace_range or select.";
|
|
326
|
-
};
|
|
327
|
-
readonly name: {
|
|
328
|
-
readonly type: "string";
|
|
329
|
-
readonly description: "Variable name for set_variable.";
|
|
330
|
-
};
|
|
331
|
-
readonly value: {
|
|
332
|
-
readonly description: "Variable value for set_variable.";
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
readonly required: readonly ["operation"];
|
|
336
|
-
};
|
|
337
|
-
};
|
|
338
|
-
declare const MCP_TOOL_VIEW_EDITOR: {
|
|
339
|
-
readonly name: "view_editor";
|
|
340
|
-
readonly title: "View the editor";
|
|
341
|
-
readonly annotations: {
|
|
342
|
-
readonly title: "View the editor";
|
|
343
|
-
readonly readOnlyHint: true;
|
|
344
|
-
readonly destructiveHint: false;
|
|
345
|
-
readonly idempotentHint: true;
|
|
346
|
-
readonly openWorldHint: false;
|
|
347
|
-
};
|
|
348
|
-
readonly description: "Captures a visual image snapshot (JPEG or PNG) of the editor canvas or viewport for multimodal evaluation. Active agent cursor indicators are automatically excluded from the snapshot.";
|
|
349
|
-
readonly inputSchema: {
|
|
350
|
-
readonly type: "object";
|
|
351
|
-
readonly properties: {
|
|
352
|
-
readonly scope: {
|
|
353
|
-
readonly type: "string";
|
|
354
|
-
readonly enum: readonly ["viewport", "canvas"];
|
|
355
|
-
readonly description: "Whether to capture only the visible viewport or the full canvas bounding box (default: viewport).";
|
|
356
|
-
};
|
|
357
|
-
readonly format: {
|
|
358
|
-
readonly type: "string";
|
|
359
|
-
readonly enum: readonly ["jpeg", "png"];
|
|
360
|
-
readonly description: "Image format of the base64 snapshot (default: jpeg).";
|
|
361
|
-
};
|
|
362
|
-
readonly maxEdge: {
|
|
363
|
-
readonly type: "integer";
|
|
364
|
-
readonly description: "Maximum width or height dimension in pixels (default: 1024).";
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
/**
|
|
370
|
-
* CSS selectors for ephemeral UI overlays (such as agent cursors, presence tags, and transient bubbles)
|
|
371
|
-
* that should be excluded during canvas image export and visual snapshot generation.
|
|
372
|
-
*/
|
|
373
|
-
declare const EXPORT_EXCLUDED_SELECTORS: readonly [".pixerate-presence", ".agent-presence", ".ursula-presence"];
|
|
374
|
-
declare const EDITOR_MCP_TOOLS: readonly [{
|
|
375
|
-
readonly name: "get_editor_state";
|
|
376
|
-
readonly title: "Get editor state";
|
|
377
|
-
readonly annotations: {
|
|
378
|
-
readonly title: "Get editor state";
|
|
379
|
-
readonly readOnlyHint: true;
|
|
380
|
-
readonly destructiveHint: false;
|
|
381
|
-
readonly idempotentHint: true;
|
|
382
|
-
readonly openWorldHint: false;
|
|
383
|
-
};
|
|
384
|
-
readonly description: "Retrieves the current state of the document, variables, selection, and canvas graph (nodes and edges).";
|
|
385
|
-
readonly inputSchema: {
|
|
386
|
-
readonly type: "object";
|
|
387
|
-
readonly properties: {
|
|
388
|
-
readonly includeDocument: {
|
|
389
|
-
readonly type: "boolean";
|
|
390
|
-
readonly description: "Whether to include the prompt document text and variables (default: true).";
|
|
391
|
-
};
|
|
392
|
-
readonly includeCanvas: {
|
|
393
|
-
readonly type: "boolean";
|
|
394
|
-
readonly description: "Whether to include the canvas nodes and edges (default: true).";
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
}, {
|
|
399
|
-
readonly name: "edit_canvas";
|
|
400
|
-
readonly title: "Edit the canvas";
|
|
401
|
-
readonly annotations: {
|
|
402
|
-
readonly title: "Edit the canvas";
|
|
403
|
-
readonly readOnlyHint: false;
|
|
404
|
-
readonly destructiveHint: true;
|
|
405
|
-
readonly idempotentHint: false;
|
|
406
|
-
readonly openWorldHint: false;
|
|
407
|
-
};
|
|
408
|
-
readonly description: "Applies high-level structural operations to the visual canvas (adding nodes, connecting edges, organizing layout, or moving elements).";
|
|
409
|
-
readonly inputSchema: {
|
|
410
|
-
readonly type: "object";
|
|
411
|
-
readonly properties: {
|
|
412
|
-
readonly operation: {
|
|
413
|
-
readonly type: "string";
|
|
414
|
-
readonly enum: readonly ["add_node", "remove_nodes", "connect", "update_node", "layout", "select", "highlight"];
|
|
415
|
-
readonly description: "The canvas operation to execute.";
|
|
416
|
-
};
|
|
417
|
-
readonly node: {
|
|
418
|
-
readonly type: "object";
|
|
419
|
-
readonly description: "Node definition when operation is add_node. Can omit position to auto-place.";
|
|
420
|
-
};
|
|
421
|
-
readonly nearNodeId: {
|
|
422
|
-
readonly type: "string";
|
|
423
|
-
readonly description: "Anchor node ID to position beside using collision-aware placement.";
|
|
424
|
-
};
|
|
425
|
-
readonly side: {
|
|
426
|
-
readonly type: "string";
|
|
427
|
-
readonly enum: readonly ["top", "right", "bottom", "left"];
|
|
428
|
-
readonly description: "Side of the anchor node to place the new node beside.";
|
|
429
|
-
};
|
|
430
|
-
readonly nodeIds: {
|
|
431
|
-
readonly type: "array";
|
|
432
|
-
readonly items: {
|
|
433
|
-
readonly type: "string";
|
|
434
|
-
};
|
|
435
|
-
readonly description: "Array of node IDs for remove_nodes, select, or highlight.";
|
|
436
|
-
};
|
|
437
|
-
readonly source: {
|
|
438
|
-
readonly type: "string";
|
|
439
|
-
readonly description: "Source node ID for connect operation.";
|
|
440
|
-
};
|
|
441
|
-
readonly target: {
|
|
442
|
-
readonly type: "string";
|
|
443
|
-
readonly description: "Target node ID for connect operation.";
|
|
444
|
-
};
|
|
445
|
-
readonly label: {
|
|
446
|
-
readonly type: "string";
|
|
447
|
-
readonly description: "Optional edge label for connect operation.";
|
|
448
|
-
};
|
|
449
|
-
readonly direction: {
|
|
450
|
-
readonly type: "string";
|
|
451
|
-
readonly enum: readonly ["LR", "TB", "RL", "BT"];
|
|
452
|
-
readonly description: "Layout direction (default LR).";
|
|
453
|
-
};
|
|
454
|
-
readonly incremental: {
|
|
455
|
-
readonly type: "boolean";
|
|
456
|
-
readonly description: "Preserve existing node coordinates and blend layout (default true).";
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
readonly required: readonly ["operation"];
|
|
460
|
-
};
|
|
461
|
-
}, {
|
|
462
|
-
readonly name: "edit_prompt";
|
|
463
|
-
readonly title: "Edit the prompt";
|
|
464
|
-
readonly annotations: {
|
|
465
|
-
readonly title: "Edit the prompt";
|
|
466
|
-
readonly readOnlyHint: false;
|
|
467
|
-
readonly destructiveHint: true;
|
|
468
|
-
readonly idempotentHint: false;
|
|
469
|
-
readonly openWorldHint: false;
|
|
470
|
-
};
|
|
471
|
-
readonly description: "Applies edits to the prompt template document, including inserting text, replacing ranges, and setting variables.";
|
|
472
|
-
readonly inputSchema: {
|
|
473
|
-
readonly type: "object";
|
|
474
|
-
readonly properties: {
|
|
475
|
-
readonly operation: {
|
|
476
|
-
readonly type: "string";
|
|
477
|
-
readonly enum: readonly ["insert_text", "replace_range", "set_variable", "select"];
|
|
478
|
-
readonly description: "The prompt operation to execute.";
|
|
479
|
-
};
|
|
480
|
-
readonly text: {
|
|
481
|
-
readonly type: "string";
|
|
482
|
-
readonly description: "Text to insert or replace.";
|
|
483
|
-
};
|
|
484
|
-
readonly at: {
|
|
485
|
-
readonly type: "number";
|
|
486
|
-
readonly description: "Position to insert text at.";
|
|
487
|
-
};
|
|
488
|
-
readonly from: {
|
|
489
|
-
readonly type: "number";
|
|
490
|
-
readonly description: "Start offset for replace_range or select.";
|
|
491
|
-
};
|
|
492
|
-
readonly to: {
|
|
493
|
-
readonly type: "number";
|
|
494
|
-
readonly description: "End offset for replace_range or select.";
|
|
495
|
-
};
|
|
496
|
-
readonly name: {
|
|
497
|
-
readonly type: "string";
|
|
498
|
-
readonly description: "Variable name for set_variable.";
|
|
499
|
-
};
|
|
500
|
-
readonly value: {
|
|
501
|
-
readonly description: "Variable value for set_variable.";
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
readonly required: readonly ["operation"];
|
|
505
|
-
};
|
|
506
|
-
}, {
|
|
507
|
-
readonly name: "view_editor";
|
|
508
|
-
readonly title: "View the editor";
|
|
509
|
-
readonly annotations: {
|
|
510
|
-
readonly title: "View the editor";
|
|
511
|
-
readonly readOnlyHint: true;
|
|
512
|
-
readonly destructiveHint: false;
|
|
513
|
-
readonly idempotentHint: true;
|
|
514
|
-
readonly openWorldHint: false;
|
|
515
|
-
};
|
|
516
|
-
readonly description: "Captures a visual image snapshot (JPEG or PNG) of the editor canvas or viewport for multimodal evaluation. Active agent cursor indicators are automatically excluded from the snapshot.";
|
|
517
|
-
readonly inputSchema: {
|
|
518
|
-
readonly type: "object";
|
|
519
|
-
readonly properties: {
|
|
520
|
-
readonly scope: {
|
|
521
|
-
readonly type: "string";
|
|
522
|
-
readonly enum: readonly ["viewport", "canvas"];
|
|
523
|
-
readonly description: "Whether to capture only the visible viewport or the full canvas bounding box (default: viewport).";
|
|
524
|
-
};
|
|
525
|
-
readonly format: {
|
|
526
|
-
readonly type: "string";
|
|
527
|
-
readonly enum: readonly ["jpeg", "png"];
|
|
528
|
-
readonly description: "Image format of the base64 snapshot (default: jpeg).";
|
|
529
|
-
};
|
|
530
|
-
readonly maxEdge: {
|
|
531
|
-
readonly type: "integer";
|
|
532
|
-
readonly description: "Maximum width or height dimension in pixels (default: 1024).";
|
|
533
|
-
};
|
|
534
|
-
};
|
|
535
|
-
};
|
|
536
|
-
}];
|
|
537
|
-
|
|
538
200
|
interface ToolProviderOptions {
|
|
539
201
|
/** Provider id (unique per registry). */
|
|
540
202
|
id: string;
|
|
@@ -598,4 +260,4 @@ declare function createEditorMcpToolProvider<TNode extends CanvasNode = CanvasNo
|
|
|
598
260
|
*/
|
|
599
261
|
declare function createCanvasComponentToolProvider(controller: ComponentCommandTarget, options?: ToolProviderOptions): AgentToolProvider;
|
|
600
262
|
|
|
601
|
-
export { type AgentCommand, type AgentPresence, type AgentStep, AgentToolProvider,
|
|
263
|
+
export { type AgentCommand, type AgentPresence, type AgentStep, AgentToolProvider, type EditorMcpToolProviderOptions, type EditorSnapshot, type RichTextToolTarget, type ToolProviderOptions, createCanvasComponentToolProvider, createEditorMcpToolProvider, createRichTextToolProvider, createSpreadsheetToolProvider, normalizeSide, planAgentCommand, planToolCall, toolCallToAgentCommand };
|