Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Merge remote-tracking branch 'origin/next' into sid/move-snippets
[email protected]29f89411ce52
diff --cc fern/pages/src/tool-calling/executing-tools.mdxindex 6dc36bd1b,682d3aed8..1610fe32d--- a/fern/pages/src/tool-calling/executing-tools.mdx+++ b/fern/pages/src/tool-calling/executing-tools.mdx@@@ -130,9 -239,28 +130,9 @@@ Composio SDK includes automatic file ha### File Upload- When a tool accepts file inputs (marked with `file_uploadable: true`), you can pass local file paths or URLs. Here's an example using Google Drive upload:+ When a tool accepts file inputs (marked with `file_uploadable: true`), you can pass local file paths or URLs or a `File` object. Here's an example using Google Drive upload:<CodeGroup>-```typescript TypeScript maxLines=60 wordWrap-import { Composio } from '@composio/core';-import path from 'path';--const composio = new Composio({- apiKey: process.env.COMPOSIO_API_KEY-});--// Upload a local file to Google Drive-const result = await composio.tools.execute('GOOGLEDRIVE_UPLOAD_FILE', {- userId: 'default',- arguments: {- file_to_upload: path.join(__dirname, 'document.pdf') // Local file path or URL or File object- }-});--console.log(result.data); // Contains Google Drive file details-```-```python Python maxLines=60 wordWrapimport os@@@ -151,25 -279,6 +151,25 @@@ result = composio.tools.executeprint(result.data) # Contains Google Drive file details```++```typescript TypeScript maxLines=60 wordWrap+import { Composio } from '@composio/core';+import path from 'path';++const composio = new Composio({+ apiKey: process.env.COMPOSIO_API_KEY+});++// Upload a local file to Google Drive+const result = await composio.tools.execute('GOOGLEDRIVE_UPLOAD_FILE', {+ userId: 'default',+ arguments: {- file_to_upload: path.join(__dirname, 'document.pdf') // Local file path++ file_to_upload: path.join(__dirname, 'document.pdf') // Local file path or URL or File object+ }+});++console.log(result.data); // Contains Google Drive file details+```</CodeGroup>The SDK automatically:diff --cc pnpm-lock.yamlindex ffa9ebda2,5299e302d..502757518--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@@ -10917,9 -12510,8 +10915,8 @@@ snapshotsdependencies:is-arrayish: 0.3.2- optional: true- [email protected]: {}+ [email protected]: {}dependencies: