MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / _call

Method _call

packages/components/nodes/tools/GoogleDocs/core.ts:283–298  ·  view source on GitHub ↗
(arg: any)

Source from the content-addressed store, hash-verified

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
301class UpdateDocumentTool extends BaseGoogleDocsTool {

Callers

nothing calls this directly

Calls 3

formatToolErrorFunction · 0.90
setMethod · 0.80
makeGoogleDocsRequestMethod · 0.80

Tested by

no test coverage detected