(arg: any)
| 281 | } |
| 282 | |
| 283 | async _call(arg: any): Promise<string> { |
| 284 | const params = { ...arg, ...this.defaultParams } |
| 285 | |
| 286 | try { |
| 287 | const queryParams = new URLSearchParams() |
| 288 | if (params.includeTabsContent) { |
| 289 | queryParams.set('includeTabsContent', 'true') |
| 290 | } |
| 291 | const endpoint = |
| 292 | `documents/${encodeURIComponent(params.documentId)}` + (queryParams.size > 0 ? `?${queryParams.toString()}` : '') |
| 293 | const response = await this.makeGoogleDocsRequest({ endpoint, params }) |
| 294 | return response |
| 295 | } catch (error) { |
| 296 | return formatToolError(`Error getting document: ${error}`, params) |
| 297 | } |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | class UpdateDocumentTool extends BaseGoogleDocsTool { |
nothing calls this directly
no test coverage detected