Skip to content

Commit 5e2468c

Browse files
impovement(slides): add missing properties definitions (#2877)
1 parent 7c0f433 commit 5e2468c

File tree

14 files changed

+262
-11
lines changed

14 files changed

+262
-11
lines changed

apps/sim/tools/google_slides/add_image.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,24 @@ export const addImageTool: ToolConfig<AddImageParams, AddImageResponse> = {
200200
metadata: {
201201
type: 'json',
202202
description: 'Operation metadata including presentation ID and image URL',
203+
properties: {
204+
presentationId: {
205+
type: 'string',
206+
description: 'The presentation ID',
207+
},
208+
pageObjectId: {
209+
type: 'string',
210+
description: 'The page object ID where the image was inserted',
211+
},
212+
imageUrl: {
213+
type: 'string',
214+
description: 'The source image URL',
215+
},
216+
url: {
217+
type: 'string',
218+
description: 'URL to open the presentation',
219+
},
220+
},
203221
},
204222
},
205223
}

apps/sim/tools/google_slides/add_slide.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,25 @@ export const addSlideTool: ToolConfig<AddSlideParams, AddSlideResponse> = {
186186
metadata: {
187187
type: 'json',
188188
description: 'Operation metadata including presentation ID, layout, and URL',
189+
properties: {
190+
presentationId: {
191+
type: 'string',
192+
description: 'The presentation ID',
193+
},
194+
layout: {
195+
type: 'string',
196+
description: 'The layout used for the new slide',
197+
},
198+
insertionIndex: {
199+
type: 'number',
200+
description: 'The zero-based index where the slide was inserted',
201+
optional: true,
202+
},
203+
url: {
204+
type: 'string',
205+
description: 'URL to open the presentation',
206+
},
207+
},
189208
},
190209
},
191210
}

apps/sim/tools/google_slides/create.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,24 @@ export const createTool: ToolConfig<GoogleSlidesToolParams, GoogleSlidesCreateRe
153153
metadata: {
154154
type: 'json',
155155
description: 'Created presentation metadata including ID, title, and URL',
156+
properties: {
157+
presentationId: {
158+
type: 'string',
159+
description: 'The presentation ID',
160+
},
161+
title: {
162+
type: 'string',
163+
description: 'The presentation title',
164+
},
165+
mimeType: {
166+
type: 'string',
167+
description: 'The mime type of the presentation',
168+
},
169+
url: {
170+
type: 'string',
171+
description: 'URL to open the presentation',
172+
},
173+
},
156174
},
157175
},
158176
}

apps/sim/tools/google_slides/create_shape.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,20 @@ export const createShapeTool: ToolConfig<CreateShapeParams, CreateShapeResponse>
353353
metadata: {
354354
type: 'json',
355355
description: 'Operation metadata including presentation ID and page object ID',
356+
properties: {
357+
presentationId: {
358+
type: 'string',
359+
description: 'The presentation ID',
360+
},
361+
pageObjectId: {
362+
type: 'string',
363+
description: 'The page object ID where the shape was created',
364+
},
365+
url: {
366+
type: 'string',
367+
description: 'URL to open the presentation',
368+
},
369+
},
356370
},
357371
},
358372
}

apps/sim/tools/google_slides/create_table.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,20 @@ export const createTableTool: ToolConfig<CreateTableParams, CreateTableResponse>
222222
metadata: {
223223
type: 'json',
224224
description: 'Operation metadata including presentation ID and page object ID',
225+
properties: {
226+
presentationId: {
227+
type: 'string',
228+
description: 'The presentation ID',
229+
},
230+
pageObjectId: {
231+
type: 'string',
232+
description: 'The page object ID where the table was created',
233+
},
234+
url: {
235+
type: 'string',
236+
description: 'URL to open the presentation',
237+
},
238+
},
225239
},
226240
},
227241
}

apps/sim/tools/google_slides/delete_object.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ export const deleteObjectTool: ToolConfig<DeleteObjectParams, DeleteObjectRespon
126126
metadata: {
127127
type: 'json',
128128
description: 'Operation metadata including presentation ID and URL',
129+
properties: {
130+
presentationId: {
131+
type: 'string',
132+
description: 'The presentation ID',
133+
},
134+
url: {
135+
type: 'string',
136+
description: 'URL to open the presentation',
137+
},
138+
},
129139
},
130140
},
131141
}

apps/sim/tools/google_slides/duplicate_object.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,20 @@ export const duplicateObjectTool: ToolConfig<DuplicateObjectParams, DuplicateObj
147147
metadata: {
148148
type: 'json',
149149
description: 'Operation metadata including presentation ID and source object ID',
150+
properties: {
151+
presentationId: {
152+
type: 'string',
153+
description: 'The presentation ID',
154+
},
155+
sourceObjectId: {
156+
type: 'string',
157+
description: 'The object ID that was duplicated',
158+
},
159+
url: {
160+
type: 'string',
161+
description: 'URL to open the presentation',
162+
},
163+
},
150164
},
151165
},
152166
}

apps/sim/tools/google_slides/get_page.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ export const getPageTool: ToolConfig<GetPageParams, GetPageResponse> = {
137137
metadata: {
138138
type: 'json',
139139
description: 'Operation metadata including presentation ID and URL',
140+
properties: {
141+
presentationId: {
142+
type: 'string',
143+
description: 'The presentation ID',
144+
},
145+
url: {
146+
type: 'string',
147+
description: 'URL to open the presentation',
148+
},
149+
},
140150
},
141151
},
142152
}

apps/sim/tools/google_slides/get_thumbnail.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,24 @@ export const getThumbnailTool: ToolConfig<GetThumbnailParams, GetThumbnailRespon
167167
metadata: {
168168
type: 'json',
169169
description: 'Operation metadata including presentation ID and page object ID',
170+
properties: {
171+
presentationId: {
172+
type: 'string',
173+
description: 'The presentation ID',
174+
},
175+
pageObjectId: {
176+
type: 'string',
177+
description: 'The page object ID for the thumbnail',
178+
},
179+
thumbnailSize: {
180+
type: 'string',
181+
description: 'The requested thumbnail size',
182+
},
183+
mimeType: {
184+
type: 'string',
185+
description: 'The thumbnail MIME type',
186+
},
187+
},
170188
},
171189
},
172190
}

apps/sim/tools/google_slides/insert_text.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ export const insertTextTool: ToolConfig<InsertTextParams, InsertTextResponse> =
154154
metadata: {
155155
type: 'json',
156156
description: 'Operation metadata including presentation ID and URL',
157+
properties: {
158+
presentationId: {
159+
type: 'string',
160+
description: 'The presentation ID',
161+
},
162+
url: {
163+
type: 'string',
164+
description: 'URL to open the presentation',
165+
},
166+
},
157167
},
158168
},
159169
}

0 commit comments

Comments
 (0)