pptx-viewer-mcp 1.2.1 → 1.3.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/CHANGELOG.md +13 -0
- package/README.md +2 -0
- package/dist/codec/index.d.ts +18 -17
- package/dist/codec/index.d.ts.map +1 -0
- package/dist/index.d.ts +584 -563
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +6 -3
- package/dist/mcp/index.mjs +6 -3
- package/dist/schemas/index.d.ts +499 -483
- package/dist/schemas/index.d.ts.map +1 -0
- package/package.json +5 -4
- package/dist/codec/index.d.mts +0 -57
- package/dist/index.d.mts +0 -862
- package/dist/mcp/index.d.mts +0 -1
- package/dist/schemas/index.d.mts +0 -576
package/dist/index.d.mts
DELETED
|
@@ -1,862 +0,0 @@
|
|
|
1
|
-
import { PptxData, PptxElement, PptxSlide, ShapeStyle, PptxThemeColorScheme, PptxThemeFontScheme, ChartAxisEdit, PresentationDiff, PptxCoreProperties, PptxAppProperties, PptxCustomProperty, PptxPresentationProperties } from 'pptx-viewer-core';
|
|
2
|
-
export { PptxData, PptxElement, PptxHandler, PptxSlide } from 'pptx-viewer-core';
|
|
3
|
-
import { Doc } from 'yjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Platform-agnostic context passed to every tool function.
|
|
7
|
-
* No Electron, no RoomManager, no framework dependencies.
|
|
8
|
-
*/
|
|
9
|
-
interface ToolContext {
|
|
10
|
-
/** Current presentation data (parsed PptxData from pptx-viewer-core). */
|
|
11
|
-
pptxData: PptxData;
|
|
12
|
-
/** Optional: resolve external image paths to binary data. */
|
|
13
|
-
resolveImage?: (path: string) => Promise<Uint8Array>;
|
|
14
|
-
/** Optional: resolve external media paths to binary data. */
|
|
15
|
-
resolveMedia?: (path: string) => Promise<Uint8Array>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Every tool function returns this.
|
|
19
|
-
* The consumer decides what to do with the mutated pptxData.
|
|
20
|
-
*/
|
|
21
|
-
interface ToolResult<T = unknown> {
|
|
22
|
-
/** The (potentially mutated) presentation data. */
|
|
23
|
-
pptxData: PptxData;
|
|
24
|
-
/** Tool-specific return value (e.g., slide info, element ID, search results). */
|
|
25
|
-
result: T;
|
|
26
|
-
/** Whether pptxData was modified (signals need to save). */
|
|
27
|
-
dirty: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Abstraction for Y.Doc room management.
|
|
32
|
-
* fz-electron implements this with RoomManager.
|
|
33
|
-
*/
|
|
34
|
-
interface CollaborationProvider {
|
|
35
|
-
/** Get an active collaboration room for a file path, or null. */
|
|
36
|
-
getRoom(filePath: string): {
|
|
37
|
-
ydoc: Doc;
|
|
38
|
-
} | null;
|
|
39
|
-
/** Get the format codec for a file path, or null. */
|
|
40
|
-
getCodec(filePath: string): {
|
|
41
|
-
hydrate(ydoc: Doc, bytes: Uint8Array, origin?: string): Promise<void>;
|
|
42
|
-
dehydrate(ydoc: Doc): Promise<Uint8Array>;
|
|
43
|
-
} | null;
|
|
44
|
-
/** Create an agent origin tag for undo isolation. */
|
|
45
|
-
agentOrigin(name: string): string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Abstraction for file system access.
|
|
49
|
-
* fz-electron implements this with window.electron.files.
|
|
50
|
-
* MCP server implements this with node:fs.
|
|
51
|
-
*/
|
|
52
|
-
interface FileSystemProvider {
|
|
53
|
-
readFile(path: string): Promise<Uint8Array>;
|
|
54
|
-
writeFile(path: string, data: Uint8Array): Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Abstraction for updating an open file viewer.
|
|
58
|
-
* Only fz-electron implements this.
|
|
59
|
-
*/
|
|
60
|
-
interface ViewerProvider {
|
|
61
|
-
replaceContent(filePath: string, bytes: Uint8Array, options: {
|
|
62
|
-
markDirty: boolean;
|
|
63
|
-
mimeType?: string;
|
|
64
|
-
}): void;
|
|
65
|
-
openFile(filePath: string): Promise<void>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Full execution context for running tools with collaboration support.
|
|
69
|
-
*/
|
|
70
|
-
interface ExecutionContext {
|
|
71
|
-
/** File system for reading/writing PPTX files. */
|
|
72
|
-
filesystem: FileSystemProvider;
|
|
73
|
-
/** Optional collaboration provider for Y.Doc routing. */
|
|
74
|
-
collaboration?: CollaborationProvider;
|
|
75
|
-
/** Optional viewer integration for live document updates. */
|
|
76
|
-
viewer?: ViewerProvider;
|
|
77
|
-
/** Agent name for collaboration origin tracking. */
|
|
78
|
-
agentName?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Load PptxData from a file, checking collaboration rooms first.
|
|
83
|
-
* If a Y.Doc room is active the current in-memory state is dehydrated
|
|
84
|
-
* so that unsaved edits are included in the tool's view of the document.
|
|
85
|
-
*/
|
|
86
|
-
declare function loadPresentation(filePath: string, execCtx: ExecutionContext): Promise<{
|
|
87
|
-
pptxData: PptxData;
|
|
88
|
-
rawBytes: Uint8Array;
|
|
89
|
-
}>;
|
|
90
|
-
/**
|
|
91
|
-
* Save mutated PptxData back: routes through collaboration Y.Doc or disk.
|
|
92
|
-
*/
|
|
93
|
-
declare function savePresentation(filePath: string, pptxData: PptxData, rawBytes: Uint8Array, execCtx: ExecutionContext): Promise<{
|
|
94
|
-
savedToDisk: boolean;
|
|
95
|
-
routedThroughCollaboration: boolean;
|
|
96
|
-
}>;
|
|
97
|
-
/**
|
|
98
|
-
* Execute a pure tool function with full collaboration-aware load/save pipeline.
|
|
99
|
-
* Handles dehydrate-from-room → tool → hydrate-back-to-room routing automatically.
|
|
100
|
-
*/
|
|
101
|
-
declare function executeToolWithContext<T>(filePath: string, execCtx: ExecutionContext, toolFn: (ctx: ToolContext) => ToolResult<T> | Promise<ToolResult<T>>): Promise<T & {
|
|
102
|
-
savedToDisk?: boolean;
|
|
103
|
-
routedThroughCollaboration?: boolean;
|
|
104
|
-
}>;
|
|
105
|
-
|
|
106
|
-
interface GetSlideResult {
|
|
107
|
-
slideIndex: number;
|
|
108
|
-
slideNumber: number;
|
|
109
|
-
hidden: boolean;
|
|
110
|
-
layoutName?: string;
|
|
111
|
-
backgroundColor?: string;
|
|
112
|
-
notes: string;
|
|
113
|
-
commentCount: number;
|
|
114
|
-
elements: Record<string, unknown>[];
|
|
115
|
-
}
|
|
116
|
-
declare function getSlide(ctx: ToolContext, params: {
|
|
117
|
-
slideIndex: number;
|
|
118
|
-
}): ToolResult<GetSlideResult>;
|
|
119
|
-
interface AddSlideParams {
|
|
120
|
-
insertAfterIndex?: number;
|
|
121
|
-
backgroundColor?: string;
|
|
122
|
-
}
|
|
123
|
-
interface AddSlideResult {
|
|
124
|
-
newSlideIndex: number;
|
|
125
|
-
slideCount: number;
|
|
126
|
-
}
|
|
127
|
-
declare function addSlide(ctx: ToolContext, params: AddSlideParams): ToolResult<AddSlideResult>;
|
|
128
|
-
interface DeleteSlidesParams {
|
|
129
|
-
slideIndexes: number[];
|
|
130
|
-
}
|
|
131
|
-
interface DeleteSlidesResult {
|
|
132
|
-
deletedCount: number;
|
|
133
|
-
slideCount: number;
|
|
134
|
-
}
|
|
135
|
-
declare function deleteSlides(ctx: ToolContext, params: DeleteSlidesParams): ToolResult<DeleteSlidesResult>;
|
|
136
|
-
interface ReorderSlidesParams {
|
|
137
|
-
newOrder: number[];
|
|
138
|
-
}
|
|
139
|
-
declare function reorderSlides(ctx: ToolContext, params: ReorderSlidesParams): ToolResult<{
|
|
140
|
-
slideCount: number;
|
|
141
|
-
}>;
|
|
142
|
-
interface DuplicateSlideParams {
|
|
143
|
-
slideIndex: number;
|
|
144
|
-
targetIndex?: number;
|
|
145
|
-
}
|
|
146
|
-
declare function duplicateSlide(ctx: ToolContext, params: DuplicateSlideParams): ToolResult<{
|
|
147
|
-
newSlideIndex: number;
|
|
148
|
-
slideCount: number;
|
|
149
|
-
}>;
|
|
150
|
-
interface UpdateSlidePropertiesParams {
|
|
151
|
-
slideIndex: number;
|
|
152
|
-
backgroundColor?: string;
|
|
153
|
-
backgroundGradient?: string;
|
|
154
|
-
backgroundImage?: string;
|
|
155
|
-
notes?: string;
|
|
156
|
-
hidden?: boolean;
|
|
157
|
-
}
|
|
158
|
-
declare function updateSlideProperties(ctx: ToolContext, params: UpdateSlidePropertiesParams): ToolResult<{
|
|
159
|
-
slideIndex: number;
|
|
160
|
-
}>;
|
|
161
|
-
interface SetSlideTransitionParams {
|
|
162
|
-
slideIndex: number;
|
|
163
|
-
type: string;
|
|
164
|
-
durationMs?: number;
|
|
165
|
-
direction?: string;
|
|
166
|
-
advanceOnClick?: boolean;
|
|
167
|
-
advanceAfterMs?: number;
|
|
168
|
-
}
|
|
169
|
-
declare function setSlideTransition(ctx: ToolContext, params: SetSlideTransitionParams): ToolResult<{
|
|
170
|
-
slideIndex: number;
|
|
171
|
-
transitionType: string;
|
|
172
|
-
}>;
|
|
173
|
-
interface SetCanvasSizeParams {
|
|
174
|
-
width: number;
|
|
175
|
-
height: number;
|
|
176
|
-
}
|
|
177
|
-
declare function setCanvasSize(ctx: ToolContext, params: SetCanvasSizeParams): ToolResult<{
|
|
178
|
-
canvasWidth: number;
|
|
179
|
-
canvasHeight: number;
|
|
180
|
-
}>;
|
|
181
|
-
|
|
182
|
-
declare function generateElementId(): string;
|
|
183
|
-
declare function generateSlideId(): string;
|
|
184
|
-
/** Build a concise text representation of a slide element for tool output. */
|
|
185
|
-
declare function describeElement(el: PptxElement): Record<string, unknown>;
|
|
186
|
-
/** Extract text from a slide's elements for search purposes. */
|
|
187
|
-
declare function extractSlideText(slide: PptxSlide): string;
|
|
188
|
-
/** Validate slideIndex is within range, return error string or null. */
|
|
189
|
-
declare function validateSlideIndex(slideIndex: number, slideCount: number): string | null;
|
|
190
|
-
|
|
191
|
-
interface AddElementParams {
|
|
192
|
-
slideIndex: number;
|
|
193
|
-
type: 'text' | 'shape' | 'image' | 'table' | 'connector';
|
|
194
|
-
x?: number;
|
|
195
|
-
y?: number;
|
|
196
|
-
width?: number;
|
|
197
|
-
height?: number;
|
|
198
|
-
text?: string;
|
|
199
|
-
fontSize?: number;
|
|
200
|
-
fontFamily?: string;
|
|
201
|
-
fontColor?: string;
|
|
202
|
-
bold?: boolean;
|
|
203
|
-
italic?: boolean;
|
|
204
|
-
underline?: boolean;
|
|
205
|
-
alignment?: 'left' | 'center' | 'right' | 'justify';
|
|
206
|
-
shapeType?: string;
|
|
207
|
-
fillColor?: string;
|
|
208
|
-
strokeColor?: string;
|
|
209
|
-
strokeWidth?: number;
|
|
210
|
-
imageData?: string;
|
|
211
|
-
altText?: string;
|
|
212
|
-
rows?: number;
|
|
213
|
-
columns?: number;
|
|
214
|
-
cellData?: string[][];
|
|
215
|
-
headerRow?: boolean;
|
|
216
|
-
startArrow?: string;
|
|
217
|
-
endArrow?: string;
|
|
218
|
-
startShapeId?: string;
|
|
219
|
-
endShapeId?: string;
|
|
220
|
-
}
|
|
221
|
-
interface AddElementResult {
|
|
222
|
-
elementId: string;
|
|
223
|
-
slideIndex: number;
|
|
224
|
-
}
|
|
225
|
-
declare function addElement(ctx: ToolContext, params: AddElementParams): ToolResult<AddElementResult>;
|
|
226
|
-
interface UpdateElementParams {
|
|
227
|
-
slideIndex: number;
|
|
228
|
-
elementId: string;
|
|
229
|
-
x?: number;
|
|
230
|
-
y?: number;
|
|
231
|
-
width?: number;
|
|
232
|
-
height?: number;
|
|
233
|
-
rotation?: number;
|
|
234
|
-
text?: string;
|
|
235
|
-
fontSize?: number;
|
|
236
|
-
fontFamily?: string;
|
|
237
|
-
fontColor?: string;
|
|
238
|
-
bold?: boolean;
|
|
239
|
-
italic?: boolean;
|
|
240
|
-
underline?: boolean;
|
|
241
|
-
alignment?: 'left' | 'center' | 'right' | 'justify';
|
|
242
|
-
fillColor?: string;
|
|
243
|
-
strokeColor?: string;
|
|
244
|
-
strokeWidth?: number;
|
|
245
|
-
opacity?: number;
|
|
246
|
-
hidden?: boolean;
|
|
247
|
-
flipH?: boolean;
|
|
248
|
-
flipV?: boolean;
|
|
249
|
-
}
|
|
250
|
-
declare function updateElement(ctx: ToolContext, params: UpdateElementParams): ToolResult<{
|
|
251
|
-
elementId: string;
|
|
252
|
-
}>;
|
|
253
|
-
interface DeleteElementsParams {
|
|
254
|
-
slideIndex: number;
|
|
255
|
-
elementIds: string[];
|
|
256
|
-
}
|
|
257
|
-
declare function deleteElements(ctx: ToolContext, params: DeleteElementsParams): ToolResult<{
|
|
258
|
-
deletedCount: number;
|
|
259
|
-
}>;
|
|
260
|
-
interface ArrangeElementsParams {
|
|
261
|
-
slideIndex: number;
|
|
262
|
-
action: 'align' | 'reorderLayer';
|
|
263
|
-
elementIds?: string[];
|
|
264
|
-
alignment?: 'left' | 'right' | 'top' | 'bottom' | 'centerH' | 'centerV';
|
|
265
|
-
elementId?: string;
|
|
266
|
-
layerAction?: 'bringToFront' | 'sendToBack' | 'bringForward' | 'sendBackward';
|
|
267
|
-
}
|
|
268
|
-
declare function arrangeElements(ctx: ToolContext, params: ArrangeElementsParams): ToolResult<{
|
|
269
|
-
slideIndex: number;
|
|
270
|
-
}>;
|
|
271
|
-
interface CloneElementParams {
|
|
272
|
-
slideIndex: number;
|
|
273
|
-
elementId: string;
|
|
274
|
-
targetSlideIndexes?: number[];
|
|
275
|
-
offsetX?: number;
|
|
276
|
-
offsetY?: number;
|
|
277
|
-
}
|
|
278
|
-
interface CloneElementResult {
|
|
279
|
-
clonedIds: string[];
|
|
280
|
-
}
|
|
281
|
-
declare function cloneElement(ctx: ToolContext, params: CloneElementParams): ToolResult<CloneElementResult>;
|
|
282
|
-
interface SetElementAnimationParams {
|
|
283
|
-
slideIndex: number;
|
|
284
|
-
elementId: string;
|
|
285
|
-
entrance?: string;
|
|
286
|
-
exit?: string;
|
|
287
|
-
durationMs?: number;
|
|
288
|
-
delayMs?: number;
|
|
289
|
-
order?: number;
|
|
290
|
-
}
|
|
291
|
-
declare function setElementAnimation(ctx: ToolContext, params: SetElementAnimationParams): ToolResult<{
|
|
292
|
-
elementId: string;
|
|
293
|
-
}>;
|
|
294
|
-
interface GroupElementsParams {
|
|
295
|
-
slideIndex: number;
|
|
296
|
-
elementIds: string[];
|
|
297
|
-
}
|
|
298
|
-
interface GroupElementsResult {
|
|
299
|
-
groupId: string;
|
|
300
|
-
}
|
|
301
|
-
declare function groupElements(ctx: ToolContext, params: GroupElementsParams): ToolResult<GroupElementsResult>;
|
|
302
|
-
interface UngroupElementsParams {
|
|
303
|
-
slideIndex: number;
|
|
304
|
-
groupElementId: string;
|
|
305
|
-
}
|
|
306
|
-
interface UngroupElementsResult {
|
|
307
|
-
restoredIds: string[];
|
|
308
|
-
}
|
|
309
|
-
declare function ungroupElements(ctx: ToolContext, params: UngroupElementsParams): ToolResult<UngroupElementsResult>;
|
|
310
|
-
interface BatchUpdateElementsParams {
|
|
311
|
-
slideIndex: number;
|
|
312
|
-
elementIds: string[];
|
|
313
|
-
x?: number;
|
|
314
|
-
y?: number;
|
|
315
|
-
width?: number;
|
|
316
|
-
height?: number;
|
|
317
|
-
rotation?: number;
|
|
318
|
-
opacity?: number;
|
|
319
|
-
hidden?: boolean;
|
|
320
|
-
}
|
|
321
|
-
declare function batchUpdateElements(ctx: ToolContext, params: BatchUpdateElementsParams): ToolResult<{
|
|
322
|
-
updatedCount: number;
|
|
323
|
-
}>;
|
|
324
|
-
|
|
325
|
-
interface UpdateTableCellsParams {
|
|
326
|
-
slideIndex: number;
|
|
327
|
-
elementId: string;
|
|
328
|
-
cells: Array<{
|
|
329
|
-
row: number;
|
|
330
|
-
col: number;
|
|
331
|
-
text: string;
|
|
332
|
-
}>;
|
|
333
|
-
}
|
|
334
|
-
declare function updateTableCells(ctx: ToolContext, params: UpdateTableCellsParams): ToolResult<{
|
|
335
|
-
updatedCount: number;
|
|
336
|
-
}>;
|
|
337
|
-
interface ManageTableStructureParams {
|
|
338
|
-
slideIndex: number;
|
|
339
|
-
elementId: string;
|
|
340
|
-
action: 'insertRow' | 'deleteRow' | 'insertColumn' | 'deleteColumn';
|
|
341
|
-
position?: number;
|
|
342
|
-
referenceIndex?: number;
|
|
343
|
-
cellTexts?: string[];
|
|
344
|
-
}
|
|
345
|
-
declare function manageTableStructure(ctx: ToolContext, params: ManageTableStructureParams): ToolResult<{
|
|
346
|
-
rowCount: number;
|
|
347
|
-
columnCount: number;
|
|
348
|
-
}>;
|
|
349
|
-
|
|
350
|
-
interface UpdateElementStyleParams {
|
|
351
|
-
slideIndex: number;
|
|
352
|
-
elementId: string;
|
|
353
|
-
fillColor?: string;
|
|
354
|
-
fillMode?: ShapeStyle['fillMode'];
|
|
355
|
-
fillGradientStops?: Array<{
|
|
356
|
-
color: string;
|
|
357
|
-
position: number;
|
|
358
|
-
opacity?: number;
|
|
359
|
-
}>;
|
|
360
|
-
fillGradientAngle?: number;
|
|
361
|
-
fillGradientType?: 'linear' | 'radial';
|
|
362
|
-
fillOpacity?: number;
|
|
363
|
-
strokeColor?: string;
|
|
364
|
-
strokeWidth?: number;
|
|
365
|
-
strokeDash?: ShapeStyle['strokeDash'];
|
|
366
|
-
strokeOpacity?: number;
|
|
367
|
-
shadowColor?: string;
|
|
368
|
-
shadowBlur?: number;
|
|
369
|
-
shadowOffsetX?: number;
|
|
370
|
-
shadowOffsetY?: number;
|
|
371
|
-
shadowOpacity?: number;
|
|
372
|
-
glowColor?: string;
|
|
373
|
-
glowRadius?: number;
|
|
374
|
-
glowOpacity?: number;
|
|
375
|
-
softEdgeRadius?: number;
|
|
376
|
-
cropLeft?: number;
|
|
377
|
-
cropTop?: number;
|
|
378
|
-
cropRight?: number;
|
|
379
|
-
cropBottom?: number;
|
|
380
|
-
brightness?: number;
|
|
381
|
-
contrast?: number;
|
|
382
|
-
grayscale?: boolean;
|
|
383
|
-
altText?: string;
|
|
384
|
-
}
|
|
385
|
-
declare function updateElementStyle(ctx: ToolContext, params: UpdateElementStyleParams): ToolResult<{
|
|
386
|
-
elementId: string;
|
|
387
|
-
}>;
|
|
388
|
-
interface AccessibilityIssue {
|
|
389
|
-
slideIndex: number;
|
|
390
|
-
elementId?: string;
|
|
391
|
-
severity: 'error' | 'warning' | 'info';
|
|
392
|
-
message: string;
|
|
393
|
-
}
|
|
394
|
-
interface AccessibilityCheckResult {
|
|
395
|
-
slideCount: number;
|
|
396
|
-
totalIssues: number;
|
|
397
|
-
errorCount: number;
|
|
398
|
-
warningCount: number;
|
|
399
|
-
infoCount: number;
|
|
400
|
-
issues: AccessibilityIssue[];
|
|
401
|
-
}
|
|
402
|
-
declare function runAccessibilityCheck(ctx: ToolContext): ToolResult<AccessibilityCheckResult>;
|
|
403
|
-
|
|
404
|
-
interface FindTextParams {
|
|
405
|
-
query: string;
|
|
406
|
-
useRegex?: boolean;
|
|
407
|
-
caseSensitive?: boolean;
|
|
408
|
-
slideIndexes?: number[];
|
|
409
|
-
}
|
|
410
|
-
interface TextMatch {
|
|
411
|
-
slideIndex: number;
|
|
412
|
-
elementId: string;
|
|
413
|
-
elementType: string;
|
|
414
|
-
matchedText: string;
|
|
415
|
-
context: string;
|
|
416
|
-
}
|
|
417
|
-
interface FindTextResult {
|
|
418
|
-
query: string;
|
|
419
|
-
matchCount: number;
|
|
420
|
-
matches: TextMatch[];
|
|
421
|
-
}
|
|
422
|
-
declare function findText(ctx: ToolContext, params: FindTextParams): ToolResult<FindTextResult>;
|
|
423
|
-
interface ReplaceTextParams {
|
|
424
|
-
query: string;
|
|
425
|
-
replacement: string;
|
|
426
|
-
useRegex?: boolean;
|
|
427
|
-
caseSensitive?: boolean;
|
|
428
|
-
slideIndexes?: number[];
|
|
429
|
-
}
|
|
430
|
-
interface ReplaceTextResult {
|
|
431
|
-
query: string;
|
|
432
|
-
replacement: string;
|
|
433
|
-
replacementCount: number;
|
|
434
|
-
}
|
|
435
|
-
declare function replaceText(ctx: ToolContext, params: ReplaceTextParams): ToolResult<ReplaceTextResult>;
|
|
436
|
-
interface ManageCommentsParams {
|
|
437
|
-
action: 'list' | 'add' | 'delete' | 'resolve';
|
|
438
|
-
slideIndex?: number;
|
|
439
|
-
text?: string;
|
|
440
|
-
author?: string;
|
|
441
|
-
commentId?: string;
|
|
442
|
-
resolved?: boolean;
|
|
443
|
-
includeResolved?: boolean;
|
|
444
|
-
}
|
|
445
|
-
interface CommentInfo {
|
|
446
|
-
id: string;
|
|
447
|
-
slideIndex: number;
|
|
448
|
-
text: string;
|
|
449
|
-
author?: string;
|
|
450
|
-
createdAt?: string;
|
|
451
|
-
resolved?: boolean;
|
|
452
|
-
}
|
|
453
|
-
interface ManageCommentsResult {
|
|
454
|
-
action: string;
|
|
455
|
-
comments?: CommentInfo[];
|
|
456
|
-
commentId?: string;
|
|
457
|
-
count?: number;
|
|
458
|
-
}
|
|
459
|
-
declare function manageComments(ctx: ToolContext, params: ManageCommentsParams): ToolResult<ManageCommentsResult>;
|
|
460
|
-
|
|
461
|
-
interface ConvertToMarkdownParams {
|
|
462
|
-
outputDir?: string;
|
|
463
|
-
mediaFolderName?: string;
|
|
464
|
-
includeMetadata?: boolean;
|
|
465
|
-
slideRange?: {
|
|
466
|
-
start?: number;
|
|
467
|
-
end?: number;
|
|
468
|
-
};
|
|
469
|
-
includeSpeakerNotes?: boolean;
|
|
470
|
-
semanticMode?: boolean;
|
|
471
|
-
sourceName?: string;
|
|
472
|
-
/**
|
|
473
|
-
* Root directory under which `outputDir` must resolve. Defaults to
|
|
474
|
-
* `process.env.PPTX_TOOLS_ROOT` if set, else `process.cwd()`.
|
|
475
|
-
*/
|
|
476
|
-
rootDir?: string;
|
|
477
|
-
}
|
|
478
|
-
interface ConvertToMarkdownResult {
|
|
479
|
-
markdown: string;
|
|
480
|
-
slidesConverted: number;
|
|
481
|
-
totalSlides: number;
|
|
482
|
-
imagesExtracted: number;
|
|
483
|
-
}
|
|
484
|
-
declare function convertToMarkdown(ctx: ToolContext, params: ConvertToMarkdownParams): Promise<ToolResult<ConvertToMarkdownResult>>;
|
|
485
|
-
|
|
486
|
-
interface ThemeInfo {
|
|
487
|
-
themeName?: string;
|
|
488
|
-
colorScheme?: PptxThemeColorScheme;
|
|
489
|
-
fontScheme?: PptxThemeFontScheme;
|
|
490
|
-
availablePresets: string[];
|
|
491
|
-
}
|
|
492
|
-
declare function getThemeInfo(ctx: ToolContext): ToolResult<ThemeInfo>;
|
|
493
|
-
interface ApplyThemePresetParams {
|
|
494
|
-
presetName: string;
|
|
495
|
-
}
|
|
496
|
-
interface ApplyThemePresetResult {
|
|
497
|
-
appliedPreset: string;
|
|
498
|
-
colorScheme: PptxThemeColorScheme;
|
|
499
|
-
}
|
|
500
|
-
declare function applyThemePreset(ctx: ToolContext, params: ApplyThemePresetParams): ToolResult<ApplyThemePresetResult>;
|
|
501
|
-
interface UpdateThemeColorsParams {
|
|
502
|
-
dk1?: string;
|
|
503
|
-
lt1?: string;
|
|
504
|
-
dk2?: string;
|
|
505
|
-
lt2?: string;
|
|
506
|
-
accent1?: string;
|
|
507
|
-
accent2?: string;
|
|
508
|
-
accent3?: string;
|
|
509
|
-
accent4?: string;
|
|
510
|
-
accent5?: string;
|
|
511
|
-
accent6?: string;
|
|
512
|
-
hlink?: string;
|
|
513
|
-
folHlink?: string;
|
|
514
|
-
}
|
|
515
|
-
declare function updateThemeColors(ctx: ToolContext, params: UpdateThemeColorsParams): ToolResult<{
|
|
516
|
-
colorScheme: PptxThemeColorScheme;
|
|
517
|
-
}>;
|
|
518
|
-
interface UpdateThemeFontsParams {
|
|
519
|
-
majorFont?: string;
|
|
520
|
-
minorFont?: string;
|
|
521
|
-
}
|
|
522
|
-
declare function updateThemeFonts(ctx: ToolContext, params: UpdateThemeFontsParams): ToolResult<{
|
|
523
|
-
fontScheme: PptxThemeFontScheme;
|
|
524
|
-
}>;
|
|
525
|
-
|
|
526
|
-
interface UpdateChartParams {
|
|
527
|
-
slideIndex: number;
|
|
528
|
-
elementId: string;
|
|
529
|
-
chartType?: string;
|
|
530
|
-
title?: string;
|
|
531
|
-
grouping?: 'clustered' | 'stacked' | 'percentStacked';
|
|
532
|
-
legend?: {
|
|
533
|
-
show?: boolean;
|
|
534
|
-
position?: string;
|
|
535
|
-
};
|
|
536
|
-
dataLabels?: {
|
|
537
|
-
show?: boolean;
|
|
538
|
-
showValue?: boolean;
|
|
539
|
-
showCategory?: boolean;
|
|
540
|
-
showSeriesName?: boolean;
|
|
541
|
-
showPercent?: boolean;
|
|
542
|
-
};
|
|
543
|
-
axis?: {
|
|
544
|
-
type: string;
|
|
545
|
-
edit: ChartAxisEdit;
|
|
546
|
-
};
|
|
547
|
-
categories?: string[];
|
|
548
|
-
}
|
|
549
|
-
declare function updateChart(ctx: ToolContext, params: UpdateChartParams): ToolResult<{
|
|
550
|
-
elementId: string;
|
|
551
|
-
}>;
|
|
552
|
-
interface AddChartSeriesParams {
|
|
553
|
-
slideIndex: number;
|
|
554
|
-
elementId: string;
|
|
555
|
-
name: string;
|
|
556
|
-
values: number[];
|
|
557
|
-
color?: string;
|
|
558
|
-
}
|
|
559
|
-
declare function addChartSeriesT(ctx: ToolContext, params: AddChartSeriesParams): ToolResult<{
|
|
560
|
-
elementId: string;
|
|
561
|
-
seriesCount: number;
|
|
562
|
-
}>;
|
|
563
|
-
interface RemoveChartSeriesParams {
|
|
564
|
-
slideIndex: number;
|
|
565
|
-
elementId: string;
|
|
566
|
-
seriesIndex: number;
|
|
567
|
-
}
|
|
568
|
-
declare function removeChartSeriesT(ctx: ToolContext, params: RemoveChartSeriesParams): ToolResult<{
|
|
569
|
-
elementId: string;
|
|
570
|
-
seriesCount: number;
|
|
571
|
-
}>;
|
|
572
|
-
interface UpdateChartSeriesDataParams {
|
|
573
|
-
slideIndex: number;
|
|
574
|
-
elementId: string;
|
|
575
|
-
seriesIndex: number;
|
|
576
|
-
values: number[];
|
|
577
|
-
}
|
|
578
|
-
declare function updateChartSeriesData(ctx: ToolContext, params: UpdateChartSeriesDataParams): ToolResult<{
|
|
579
|
-
elementId: string;
|
|
580
|
-
}>;
|
|
581
|
-
interface CreateChartParams {
|
|
582
|
-
slideIndex: number;
|
|
583
|
-
chartType: string;
|
|
584
|
-
x?: number;
|
|
585
|
-
y?: number;
|
|
586
|
-
width?: number;
|
|
587
|
-
height?: number;
|
|
588
|
-
title?: string;
|
|
589
|
-
categories?: string[];
|
|
590
|
-
series?: Array<{
|
|
591
|
-
name: string;
|
|
592
|
-
values: number[];
|
|
593
|
-
color?: string;
|
|
594
|
-
}>;
|
|
595
|
-
legend?: {
|
|
596
|
-
show: boolean;
|
|
597
|
-
position?: string;
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
interface CreateChartResult {
|
|
601
|
-
elementId: string;
|
|
602
|
-
slideIndex: number;
|
|
603
|
-
}
|
|
604
|
-
declare function createChart(ctx: ToolContext, params: CreateChartParams): ToolResult<CreateChartResult>;
|
|
605
|
-
|
|
606
|
-
interface ManageSmartArtParams {
|
|
607
|
-
slideIndex: number;
|
|
608
|
-
elementId: string;
|
|
609
|
-
action: 'addNode' | 'removeNode' | 'updateNodeText' | 'reorderNode' | 'promoteNode' | 'demoteNode' | 'decompose' | 'getNodes';
|
|
610
|
-
nodeId?: string;
|
|
611
|
-
text?: string;
|
|
612
|
-
afterNodeId?: string;
|
|
613
|
-
direction?: number;
|
|
614
|
-
}
|
|
615
|
-
interface SmartArtNodeInfo {
|
|
616
|
-
id: string;
|
|
617
|
-
text: string;
|
|
618
|
-
children?: SmartArtNodeInfo[];
|
|
619
|
-
}
|
|
620
|
-
interface ManageSmartArtResult {
|
|
621
|
-
action: string;
|
|
622
|
-
elementId: string;
|
|
623
|
-
nodes?: SmartArtNodeInfo[];
|
|
624
|
-
decomposedCount?: number;
|
|
625
|
-
}
|
|
626
|
-
declare function manageSmartArt(ctx: ToolContext, params: ManageSmartArtParams): ToolResult<ManageSmartArtResult>;
|
|
627
|
-
|
|
628
|
-
interface MergePresentationParams {
|
|
629
|
-
/** The source presentation data to merge FROM. */
|
|
630
|
-
sourceData: PptxData;
|
|
631
|
-
/** Specific slide indices from source to merge. If omitted, all slides. */
|
|
632
|
-
slideIndices?: number[];
|
|
633
|
-
/** Where to insert in the target (0-based). Defaults to end. */
|
|
634
|
-
insertAt?: number;
|
|
635
|
-
/** Whether to keep the source theme. */
|
|
636
|
-
keepSourceTheme?: boolean;
|
|
637
|
-
}
|
|
638
|
-
interface MergePresentationResult {
|
|
639
|
-
slidesAdded: number;
|
|
640
|
-
totalSlides: number;
|
|
641
|
-
}
|
|
642
|
-
declare function mergePresentationT(ctx: ToolContext, params: MergePresentationParams): ToolResult<MergePresentationResult>;
|
|
643
|
-
interface DiffPresentationsParams {
|
|
644
|
-
/** The other presentation data to diff against. */
|
|
645
|
-
otherData: PptxData;
|
|
646
|
-
}
|
|
647
|
-
declare function diffPresentationsT(ctx: ToolContext, params: DiffPresentationsParams): ToolResult<PresentationDiff>;
|
|
648
|
-
|
|
649
|
-
interface FindPlaceholdersResult {
|
|
650
|
-
placeholders: string[];
|
|
651
|
-
count: number;
|
|
652
|
-
}
|
|
653
|
-
declare function findPlaceholdersT(ctx: ToolContext): ToolResult<FindPlaceholdersResult>;
|
|
654
|
-
interface ApplyTemplateParams {
|
|
655
|
-
data: Record<string, unknown>;
|
|
656
|
-
}
|
|
657
|
-
interface ApplyTemplateResult {
|
|
658
|
-
applied: boolean;
|
|
659
|
-
slideCount: number;
|
|
660
|
-
}
|
|
661
|
-
declare function applyTemplateT(ctx: ToolContext, params: ApplyTemplateParams): ToolResult<ApplyTemplateResult>;
|
|
662
|
-
|
|
663
|
-
interface MetadataResult {
|
|
664
|
-
coreProperties?: PptxCoreProperties;
|
|
665
|
-
appProperties?: PptxAppProperties;
|
|
666
|
-
customProperties?: PptxCustomProperty[];
|
|
667
|
-
slideCount: number;
|
|
668
|
-
}
|
|
669
|
-
declare function getMetadata(ctx: ToolContext): ToolResult<MetadataResult>;
|
|
670
|
-
interface UpdateMetadataParams {
|
|
671
|
-
title?: string;
|
|
672
|
-
subject?: string;
|
|
673
|
-
creator?: string;
|
|
674
|
-
keywords?: string;
|
|
675
|
-
description?: string;
|
|
676
|
-
lastModifiedBy?: string;
|
|
677
|
-
category?: string;
|
|
678
|
-
company?: string;
|
|
679
|
-
manager?: string;
|
|
680
|
-
customProperties?: Array<{
|
|
681
|
-
name: string;
|
|
682
|
-
value: string | number | boolean;
|
|
683
|
-
}>;
|
|
684
|
-
}
|
|
685
|
-
declare function updateMetadata(ctx: ToolContext, params: UpdateMetadataParams): ToolResult<{
|
|
686
|
-
updated: string[];
|
|
687
|
-
}>;
|
|
688
|
-
|
|
689
|
-
interface ManageSectionsParams {
|
|
690
|
-
action: 'list' | 'add' | 'remove' | 'reorder' | 'moveSlides' | 'getForSlide';
|
|
691
|
-
name?: string;
|
|
692
|
-
slideIndices?: number[];
|
|
693
|
-
sectionId?: string;
|
|
694
|
-
sectionIds?: string[];
|
|
695
|
-
slideIndex?: number;
|
|
696
|
-
}
|
|
697
|
-
interface SectionInfo {
|
|
698
|
-
id: string;
|
|
699
|
-
name: string;
|
|
700
|
-
slideIds: string[];
|
|
701
|
-
collapsed?: boolean;
|
|
702
|
-
color?: string;
|
|
703
|
-
}
|
|
704
|
-
interface ManageSectionsResult {
|
|
705
|
-
action: string;
|
|
706
|
-
sections?: SectionInfo[];
|
|
707
|
-
section?: SectionInfo | null;
|
|
708
|
-
success?: boolean;
|
|
709
|
-
}
|
|
710
|
-
declare function manageSections(ctx: ToolContext, params: ManageSectionsParams): ToolResult<ManageSectionsResult>;
|
|
711
|
-
|
|
712
|
-
interface ExportToSvgParams {
|
|
713
|
-
slideIndices?: number[];
|
|
714
|
-
includeHidden?: boolean;
|
|
715
|
-
defaultFontFamily?: string;
|
|
716
|
-
defaultFontSize?: number;
|
|
717
|
-
}
|
|
718
|
-
interface ExportToSvgResult {
|
|
719
|
-
svgStrings: string[];
|
|
720
|
-
slideCount: number;
|
|
721
|
-
}
|
|
722
|
-
declare function exportToSvg(ctx: ToolContext, params: ExportToSvgParams): ToolResult<ExportToSvgResult>;
|
|
723
|
-
interface ExportSlideSvgParams {
|
|
724
|
-
slideIndex: number;
|
|
725
|
-
defaultFontFamily?: string;
|
|
726
|
-
defaultFontSize?: number;
|
|
727
|
-
}
|
|
728
|
-
interface ExportSlideSvgResult {
|
|
729
|
-
svg: string;
|
|
730
|
-
slideIndex: number;
|
|
731
|
-
}
|
|
732
|
-
declare function exportSlideSvg(ctx: ToolContext, params: ExportSlideSvgParams): ToolResult<ExportSlideSvgResult>;
|
|
733
|
-
|
|
734
|
-
interface ManageHyperlinksParams {
|
|
735
|
-
slideIndex: number;
|
|
736
|
-
action: 'list' | 'set' | 'remove';
|
|
737
|
-
elementId?: string;
|
|
738
|
-
trigger?: 'click' | 'hover';
|
|
739
|
-
url?: string;
|
|
740
|
-
tooltip?: string;
|
|
741
|
-
targetSlideIndex?: number;
|
|
742
|
-
actionType?: 'url' | 'slide' | 'nextSlide' | 'prevSlide' | 'firstSlide' | 'lastSlide' | 'endShow';
|
|
743
|
-
}
|
|
744
|
-
interface HyperlinkInfo {
|
|
745
|
-
elementId: string;
|
|
746
|
-
trigger: 'click' | 'hover';
|
|
747
|
-
url?: string;
|
|
748
|
-
tooltip?: string;
|
|
749
|
-
targetSlideIndex?: number;
|
|
750
|
-
actionType?: string;
|
|
751
|
-
}
|
|
752
|
-
interface ManageHyperlinksResult {
|
|
753
|
-
action: string;
|
|
754
|
-
hyperlinks?: HyperlinkInfo[];
|
|
755
|
-
elementId?: string;
|
|
756
|
-
}
|
|
757
|
-
declare function manageHyperlinks(ctx: ToolContext, params: ManageHyperlinksParams): ToolResult<ManageHyperlinksResult>;
|
|
758
|
-
|
|
759
|
-
interface ReplaceGeometryParams {
|
|
760
|
-
slideIndex: number;
|
|
761
|
-
elementId: string;
|
|
762
|
-
/** New preset shape type (e.g. "roundRect", "star5", "ellipse"). */
|
|
763
|
-
shapeType?: string;
|
|
764
|
-
/** Custom SVG path data (mutually exclusive with shapeType). */
|
|
765
|
-
svgPath?: string;
|
|
766
|
-
/** Width of the custom path coordinate space. */
|
|
767
|
-
pathWidth?: number;
|
|
768
|
-
/** Height of the custom path coordinate space. */
|
|
769
|
-
pathHeight?: number;
|
|
770
|
-
/** Adjustment values for the new geometry. */
|
|
771
|
-
adjustments?: Record<string, number>;
|
|
772
|
-
}
|
|
773
|
-
declare function replaceGeometry(ctx: ToolContext, params: ReplaceGeometryParams): ToolResult<{
|
|
774
|
-
elementId: string;
|
|
775
|
-
geometryType: string;
|
|
776
|
-
}>;
|
|
777
|
-
|
|
778
|
-
interface SetElementLockParams {
|
|
779
|
-
slideIndex: number;
|
|
780
|
-
elementId: string;
|
|
781
|
-
locked: boolean;
|
|
782
|
-
noMove?: boolean;
|
|
783
|
-
noResize?: boolean;
|
|
784
|
-
noRotation?: boolean;
|
|
785
|
-
noSelect?: boolean;
|
|
786
|
-
noTextEdit?: boolean;
|
|
787
|
-
}
|
|
788
|
-
declare function setElementLockT(ctx: ToolContext, params: SetElementLockParams): ToolResult<{
|
|
789
|
-
elementId: string;
|
|
790
|
-
locked: boolean;
|
|
791
|
-
}>;
|
|
792
|
-
|
|
793
|
-
interface ValidatePresentationResult {
|
|
794
|
-
valid: boolean;
|
|
795
|
-
issueCount: number;
|
|
796
|
-
errors: number;
|
|
797
|
-
warnings: number;
|
|
798
|
-
issues: Array<{
|
|
799
|
-
severity: string;
|
|
800
|
-
code: string;
|
|
801
|
-
message: string;
|
|
802
|
-
path?: string;
|
|
803
|
-
}>;
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* Validate requires the raw bytes (ArrayBuffer) so this tool needs special
|
|
807
|
-
* handling: the MCP server must pass rawBytes alongside the context.
|
|
808
|
-
* We store a reference in ToolContext via resolveMedia or pass it directly.
|
|
809
|
-
*/
|
|
810
|
-
declare function validatePresentation(rawBytes: ArrayBuffer): Promise<ValidatePresentationResult>;
|
|
811
|
-
interface RepairPresentationResult {
|
|
812
|
-
repairCount: number;
|
|
813
|
-
repairs: string[];
|
|
814
|
-
}
|
|
815
|
-
declare function repairPresentation(rawBytes: ArrayBuffer): Promise<{
|
|
816
|
-
result: RepairPresentationResult;
|
|
817
|
-
repairedBytes: ArrayBuffer;
|
|
818
|
-
}>;
|
|
819
|
-
|
|
820
|
-
declare function getPresentationProperties(ctx: ToolContext): ToolResult<{
|
|
821
|
-
properties: PptxPresentationProperties | undefined;
|
|
822
|
-
slideCount: number;
|
|
823
|
-
width?: number;
|
|
824
|
-
height?: number;
|
|
825
|
-
}>;
|
|
826
|
-
interface UpdatePresentationPropertiesParams {
|
|
827
|
-
showType?: 'presented' | 'browsed' | 'kiosk';
|
|
828
|
-
loopContinuously?: boolean;
|
|
829
|
-
showWithNarration?: boolean;
|
|
830
|
-
showWithAnimation?: boolean;
|
|
831
|
-
advanceMode?: 'manual' | 'useTimings';
|
|
832
|
-
showSlidesMode?: 'all' | 'customShow' | 'range';
|
|
833
|
-
showSlidesFrom?: number;
|
|
834
|
-
showSlidesTo?: number;
|
|
835
|
-
penColor?: string;
|
|
836
|
-
}
|
|
837
|
-
declare function updatePresentationProperties(ctx: ToolContext, params: UpdatePresentationPropertiesParams): ToolResult<{
|
|
838
|
-
properties: PptxPresentationProperties;
|
|
839
|
-
}>;
|
|
840
|
-
|
|
841
|
-
interface LayoutInfo {
|
|
842
|
-
name: string;
|
|
843
|
-
path?: string;
|
|
844
|
-
type?: string;
|
|
845
|
-
}
|
|
846
|
-
interface GetLayoutsResult {
|
|
847
|
-
layouts: LayoutInfo[];
|
|
848
|
-
count: number;
|
|
849
|
-
}
|
|
850
|
-
declare function getLayouts(ctx: ToolContext): ToolResult<GetLayoutsResult>;
|
|
851
|
-
interface ApplyLayoutParams {
|
|
852
|
-
slideIndex: number;
|
|
853
|
-
layoutName?: string;
|
|
854
|
-
layoutType?: string;
|
|
855
|
-
}
|
|
856
|
-
interface ApplyLayoutResult {
|
|
857
|
-
slideIndex: number;
|
|
858
|
-
layoutName: string;
|
|
859
|
-
}
|
|
860
|
-
declare function applyLayout(ctx: ToolContext, params: ApplyLayoutParams): ToolResult<ApplyLayoutResult>;
|
|
861
|
-
|
|
862
|
-
export { type AccessibilityCheckResult, type AccessibilityIssue, type AddChartSeriesParams, type AddElementParams, type AddElementResult, type AddSlideParams, type AddSlideResult, type ApplyLayoutParams, type ApplyLayoutResult, type ApplyTemplateParams, type ApplyTemplateResult, type ApplyThemePresetParams, type ApplyThemePresetResult, type ArrangeElementsParams, type BatchUpdateElementsParams, type CloneElementParams, type CloneElementResult, type CollaborationProvider, type CommentInfo, type ConvertToMarkdownParams, type ConvertToMarkdownResult, type CreateChartParams, type CreateChartResult, type DeleteElementsParams, type DeleteSlidesParams, type DeleteSlidesResult, type DiffPresentationsParams, type DuplicateSlideParams, type ExecutionContext, type ExportSlideSvgParams, type ExportSlideSvgResult, type ExportToSvgParams, type ExportToSvgResult, type FileSystemProvider, type FindPlaceholdersResult, type FindTextParams, type FindTextResult, type GetLayoutsResult, type GetSlideResult, type GroupElementsParams, type GroupElementsResult, type HyperlinkInfo, type LayoutInfo, type ManageCommentsParams, type ManageCommentsResult, type ManageHyperlinksParams, type ManageHyperlinksResult, type ManageSectionsParams, type ManageSectionsResult, type ManageSmartArtParams, type ManageSmartArtResult, type ManageTableStructureParams, type MergePresentationParams, type MergePresentationResult, type MetadataResult, type RemoveChartSeriesParams, type ReorderSlidesParams, type RepairPresentationResult, type ReplaceGeometryParams, type ReplaceTextParams, type ReplaceTextResult, type SectionInfo, type SetCanvasSizeParams, type SetElementAnimationParams, type SetElementLockParams, type SetSlideTransitionParams, type SmartArtNodeInfo, type TextMatch, type ThemeInfo, type ToolContext, type ToolResult, type UngroupElementsParams, type UngroupElementsResult, type UpdateChartParams, type UpdateChartSeriesDataParams, type UpdateElementParams, type UpdateElementStyleParams, type UpdateMetadataParams, type UpdatePresentationPropertiesParams, type UpdateSlidePropertiesParams, type UpdateTableCellsParams, type UpdateThemeColorsParams, type UpdateThemeFontsParams, type ValidatePresentationResult, type ViewerProvider, addChartSeriesT, addElement, addSlide, applyLayout, applyTemplateT, applyThemePreset, arrangeElements, batchUpdateElements, cloneElement, convertToMarkdown, createChart, deleteElements, deleteSlides, describeElement, diffPresentationsT, duplicateSlide, executeToolWithContext, exportSlideSvg, exportToSvg, extractSlideText, findPlaceholdersT, findText, generateElementId, generateSlideId, getLayouts, getMetadata, getPresentationProperties, getSlide, getThemeInfo, groupElements, loadPresentation, manageComments, manageHyperlinks, manageSections, manageSmartArt, manageTableStructure, mergePresentationT, removeChartSeriesT, reorderSlides, repairPresentation, replaceGeometry, replaceText, runAccessibilityCheck, savePresentation, setCanvasSize, setElementAnimation, setElementLockT, setSlideTransition, ungroupElements, updateChart, updateChartSeriesData, updateElement, updateElementStyle, updateMetadata, updatePresentationProperties, updateSlideProperties, updateTableCells, updateThemeColors, updateThemeFonts, validatePresentation, validateSlideIndex };
|