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
Executing tools docs cleanup (#1886)
Sushmitha Mallesh1569fb04dac0
diff --git a/fern/pages/src/examples/gmail-filterer.mdx b/fern/pages/src/examples/gmail-filterer.mdxindex 81037ef64..7f0492313 100644--- a/fern/pages/src/examples/gmail-filterer.mdx+++ b/fern/pages/src/examples/gmail-filterer.mdx@@ -1,14 +1,18 @@---title: AI Gmail Labeller-subtitle: "A Python app that uses your custom LLM prompt to label your Gmail!"-image: "https://og.composio.dev/api/og?title=AI%20Gmail%20Labeller" # image for socials+subtitle: 'A Python app that uses your custom LLM prompt to label your Gmail!'+image: 'https://og.composio.dev/api/og?title=AI%20Gmail%20Labeller' # image for socialskeywords: ''hide-nav-links: false---+Imagine having an AI assistant that automatically organizes your Gmail inbox by intelligently labeling incoming emails. That's exactly what we'll build in this tutorial.<Frame>- <img src="https://camo.githubusercontent.com/29b105fdcc2e005d8dd76bab0af33081a0567637da1061da6e1664285b843f8d/68747470733a2f2f692e696d6775722e636f6d2f515646337956582e676966" alt="Gmail Labeller" />+ <img+ src="https://camo.githubusercontent.com/29b105fdcc2e005d8dd76bab0af33081a0567637da1061da6e1664285b843f8d/68747470733a2f2f692e696d6775722e636f6d2f515646337956582e676966"+ alt="Gmail Labeller"+ /></Frame>The complete app is available in our [`filter-gmails-example`](https://github.com/ComposioHQ/filter-gmails-example) repository. The app has a frontend built with Next.js along with Supabase for authentication.@@ -24,11 +28,12 @@ The complete app is available in our [`filter-gmails-example`](https://github.coIn this guide, we'll focus on the Composio + OpenAI Agents part of the app.## Prerequisites+- Clone the [`filter-gmails-example`](https://github.com/ComposioHQ/filter-gmails-example) repository and set the project up locally.- Get a Composio API key. You can get one <a href="https://platform.composio.dev?next_page=/settings" target="_blank">here</a>.-## Creating Triggers for users+[Triggers](/docs/using-triggers) are a way to listen for events from apps. They act as a notification system for your AI applications, enabling your agents to respond dynamically to external events occurring within your apps.In some cases, triggers require certain configurations to set the correct events. You can inspect and add these properties while enabling the triggers.@@ -49,8 +54,8 @@ Then the trigger can be created with the following code:title="apps/backend/email_processor.py"/>-## Listening for a trigger event+<Callout type="info">For local development, you can use [ngrok](https://ngrok.com/) to expose your local server to the internet.@@ -59,6 +64,7 @@ ngrok http 8000```Then you can set the ngrok URL in the trigger configuration.+<Frame><img src="../../../assets/images/examples/trigger-config.png" alt="Trigger configuration" /></Frame>@@ -73,12 +79,12 @@ It is parsed and then the labeling method `process_gmail_message` is called thro```python apps/backend/main.py {1-5, 29-33} maxLines=33@app.post("/composio/webhook")async def listen_webhooks(- request: Request,+ request: Request,background_tasks: BackgroundTasks):"""- Main webhook endpoint for processing Gmail- new message events. This is the core webhook+ Main webhook endpoint for processing Gmail+ new message events. This is the core webhooklabeling functionality."""# Verify webhook signature@@ -100,8 +106,8 @@ async def listen_webhooks(# Add email processing to background tasksbackground_tasks.add_task(- process_gmail_message,- gmail_message,+ process_gmail_message,+ gmail_message,user_prompt)@@ -112,6 +118,7 @@ async def listen_webhooks(```## Processing the mail using OpenAI Agents SDK+The `process_gmail_message` method is responsible for processing the email using the OpenAI Agents SDK.<SnippetCode@@ -149,6 +156,7 @@ You can view the agent trace in OpenAI's [Traces Dashboard](https://platform.ope</Frame>## Securing the webhooks!+It is important to validate the webhook signature to ensure the request is coming from Composio.Generate and store the webhook signature in the environment variables.@@ -158,6 +166,7 @@ Generate and store the webhook signature in the environment variables.</Frame>The webhook signature is validated in the `verify_webhook_signature` function.+<SnippetCodegithubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/webhook.py#L10-L56"language="python"@@ -173,6 +182,7 @@ In the `/composio/webhook` endpoint, we verify the webhook signature and then pa/>## Inspiration+This example was inspired by an X/Twitter post by [@FarzaTV](https://x.com/FarzaTV/status/1905371012369350857).-We encourage you to check out the [full app](https://github.com/ComposioHQ/filter-gmails-example), fork it, build it, and make it your own! Reach out to [[email protected]](mailto:[email protected]) for free credits ;)+We encourage you to check out the [full app](https://github.com/ComposioHQ/filter-gmails-example), fork it, build it, and make it your own! Reach out to [[email protected]](mailto:[email protected]) for free credits ;)diff --git a/fern/pages/src/providers/vercel.mdx b/fern/pages/src/providers/vercel.mdxindex 161a21af6..e7d1d3ce4 100644--- a/fern/pages/src/providers/vercel.mdx+++ b/fern/pages/src/providers/vercel.mdx@@ -1,8 +1,8 @@---title: Vercel AI SDK Providerslug: /providers/vercel-image: "https://og.composio.dev/api/og?title=Vercel%20AI%20SDK%20Provider" # image for socials-keywords: ""+image: 'https://og.composio.dev/api/og?title=Vercel%20AI%20SDK%20Provider' # image for socials+keywords: ''hide-nav-links: false---@@ -11,6 +11,7 @@ Vercel AI SDK allows you to configure an optional async `execute` function thatThe Vercel provider for Composio formats the Composio tools and adds this `execute` function to the tool calls.## Setup+Vercel AI SDK and the provider are only available for the TypeScript SDK.```typescript TypeScript maxLines=60 wordWrap@@ -20,8 +21,8 @@ npm install @composio/vercelYou can specify and import the provider in the constructor.```typescript TypeScript maxLines=60 wordWrap-import { Composio } from "@composio/core";-import { VercelProvider } from "@composio/vercel";+import { Composio } from '@composio/core';+import { VercelProvider } from '@composio/vercel';const composio = new Composio({provider: new VercelProvider(),@@ -31,15 +32,14 @@ const composio = new Composio({## Usage```typescript TypeScript maxLines=60 wordWrap-const tools = await composio.tools.get(userId, "GMAIL_SEND_EMAIL");+const tools = await composio.tools.get(userId, 'GMAIL_SEND_EMAIL');const { text } = await generateText({- model: anthropic("claude-3-7-sonnet-20250219"),+ model: anthropic('claude-3-7-sonnet-20250219'),messages: [{- role: "user",- content:- "Send an email to [email protected] saying 'hi from the ether of composio'",+ role: 'user',+ content: "Send an email to [email protected] saying 'hi from the ether of composio'",},],tools,@@ -47,4 +47,4 @@ const { text } = await generateText({});console.log(text);-```\ No newline at end of file+```diff --git a/fern/pages/src/tool-calling/executing-tools.mdx b/fern/pages/src/tool-calling/executing-tools.mdxindex ec2e29db0..f396e3679 100644--- a/fern/pages/src/tool-calling/executing-tools.mdx+++ b/fern/pages/src/tool-calling/executing-tools.mdx@@ -1,200 +1,146 @@---title: Executing Tools-image: "https://og.composio.dev/api/og?title=Executing%20Tools" # image for socials-keywords: ""+image: 'https://og.composio.dev/api/og?title=Executing%20Tools' # image for socials+keywords: ''subtitle: "Learn how to execute Composio's tools with different providers and frameworks"hide-nav-links: false----LLMs on their own can only do generation. Tool calling changes that by letting them interact with external services. Instead of just drafting an email, the model can call `GMAIL_SEND_EMAIL` to actually send it. The tool's results feed back to the LLM, closing the loop so it can decide, *act,* observe, and adapt.+LLMs on their own can only do generation. Tool calling changes that by letting them interact with external services. Instead of just drafting an email, the model can call `GMAIL_SEND_EMAIL` to actually send it. The tool's results feed back to the LLM, closing the loop so it can decide, _act,_ observe, and adapt.-In Composio, every **tool** is a single API action—fully described with schema, parameters, and return type. Tools live inside **toolkits** like *Gmail, Slack, or GitHub*, and Composio handles authentication and user scoping.-+In Composio, every **tool** is a single API action—fully described with schema, parameters, and return type. Tools live inside **toolkits** like _Gmail, Slack, or GitHub_, and Composio handles authentication and user scoping.<Tip icon="info">-**User Scoping**: All tools are scoped to a specific user - that's why every example includes a `user_id`. Each user must authenticate with their respective services (Gmail, Calendar, etc.) before executing tools. [Learn more about authentication →](./authenticating-tools)+ **User Scoping**: All tools are scoped to a specific user - that's why every example includes a+ `user_id`. Each user must authenticate with their respective services (Gmail, Calendar, etc.)+ before executing tools. [Learn more about authentication →](./authenticating-tools)</Tip>## Using Chat Completions-With providers like *OpenAI*, *Anthropic*, and *Google AI*, use the Composio SDK to execute tool calls easily. To learn how to setup these providers, see [Providers](/providers/openai).+Use the Composio SDK with providers like OpenAI, Anthropic, and Google AI. To learn how to set-up these providers, see [Providers](/providers/openai).<CodeGroup>-<SnippetCode- src="fern/snippets/tool-calling/python/exec-tool-completions.py"- title="Python (OpenAI)"- highlightStart={32}- highlightEnd={33}-/>-<SnippetCode- src="fern/snippets/tool-calling/typescript/exec-tool-completions.ts"- title="TypeScript (Anthropic)"- highlightStart={37}- highlightEnd={38}-/>+ <SnippetCode+ src="fern/snippets/tool-calling/python/exec-tool-completions.py"+ title="Python (OpenAI)"+ highlightStart={32}+ highlightEnd={33}+ />+ <SnippetCode+ src="fern/snippets/tool-calling/typescript/exec-tool-completions.ts"+ title="TypeScript (Anthropic)"+ highlightStart={37}+ highlightEnd={38}+ /></CodeGroup>## Using Agentic Frameworks-Agentic frameworks automatically handle the tool execution loop.-Composio provides support for frameworks like this by making sure the tools are formatted into the correct objects for the agentic framework to execute.+Agentic frameworks automatically handle the tool execution loop.+Composio provides support for frameworks like this by making sure the tools are formatted into the correct objects for the agentic framework to execute.<CodeGroup>-<SnippetCode- src="fern/snippets/tool-calling/python/exec-tool-agentic.py"- title="Python (OpenAI Agents SDK)"- highlightStart={19}- highlightEnd={23}-/>-<SnippetCode- src="fern/snippets/tool-calling/typescript/exec-tool-agentic.ts"- title="TypeScript (Anthropic)"- highlightStart={22}- highlightEnd={31}-/>+ <SnippetCode+ src="fern/snippets/tool-calling/python/exec-tool-agentic.py"+ title="Python (OpenAI Agents SDK)"+ highlightStart={19}+ highlightEnd={23}+ />+ <SnippetCode+ src="fern/snippets/tool-calling/typescript/exec-tool-agentic.ts"+ title="TypeScript (Anthropic)"+ highlightStart={22}+ highlightEnd={31}+ /></CodeGroup>## Direct Tool execution+In case you just want to call a tool without using any framework or LLM provider, you can use the `execute` method directly.+<Tip icon="lightbulb">-**Finding tool arguments**: Visit [Composio Toolkits](https://platform.composio.dev?next_page=/marketplace) → Select your toolkit -> Select tool to see its required and optional parameters, types, and descriptions.+ **Finding tool arguments**: In the [Auth Configs+ tab](https://platform.composio.dev?next_page=/auth-configs) → Select your toolkit → Tools &+ Triggers → Select the tool to see its required and optional parameters, types, and descriptions.</Tip><CodeGroup>-<SnippetCode- src="fern/snippets/tool-calling/python/direct-tool-call.py"- title="Python"-/>-<SnippetCode- src="fern/snippets/tool-calling/typescript/direct-tool-call.ts"- title="TypeScript"-/>-</CodeGroup>+ <SnippetCode src="fern/snippets/tool-calling/python/direct-tool-call.py" title="Python" />+ <SnippetCode src="fern/snippets/tool-calling/typescript/direct-tool-call.ts" title="TypeScript" />+</CodeGroup>### Proxy Execute -- Manually calling toolkit APIs-You can also proxy requests to an API of any supported toolkit. This is useful when you want to manually call an API of a toolkit and inject the authentication state from Composio.++You can proxy requests to any supported toolkit API and let Composio inject the **authentication state**. This is useful when you need an API endpoint that isn't available as a predefined tool.++The `endpoint` can be a relative path or absolute URL. Composio uses the `connected_account_id` to determine the toolkit and resolve relative paths against the appropriate base URL.<CodeGroup>-```python Python maxLines=60 wordWrap-response = composio.tools.proxy(- endpoint="/repos/composiohq/composio/issues/1",- method="GET",- connected_account_id="ac_1234", # use connected account for github- parameters=[- {- "name": "Accept",- "value": "application/vnd.github.v3+json",- "type": "header",- },- ],-)-```-```typescript TypeScript maxLines=60 wordWrap-// Send a custom request to a toolkit-const { data } = await composio.tools.proxyExecute({- toolkitSlug: 'github',- userId: '[email protected]',- data: {- endpoint: '/repos/owner/repo/issues',- method: 'GET'- }-});-console.log(data);-```+ <SnippetCode+ src="fern/snippets/tool-calling/python/proxy-tool.py"+ title="Python"+ startLine={5}+ highlightStart={9}+ highlightEnd={9}+ />+ <SnippetCode+ src="fern/snippets/tool-calling/typescript/proxy-tool.ts"+ title="TypeScript"+ startLine={5}+ highlightStart={9}+ highlightEnd={9}+/>+</CodeGroup>-If you're interested in extending toolkits and creating custom tools, see [Custom tools](/docs/custom-tools).+<Tip icon="info">+ Need an API that isn't supported by any Composio toolkit, or want to extend an existing one? Learn+ how to [create custom tools](/docs/custom-tools).+</Tip>## Automatic File Handling-Composio SDK includes automatic file handling for tools that work with files. When enabled (default), the SDK automatically handles file uploads and downloads during tool execution.+Composio handles file operations automatically. Pass file paths to tools that need them, and get local file paths back from tools that return files.### File 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:+Pass local file paths, URLs, or File objects to tools that accept files:<CodeGroup>-```python Python maxLines=60 wordWrap-import os--from composio import Composio--composio = Composio()--# Upload a local file to Google Drive-result = composio.tools.execute(- "GOOGLEDRIVE_UPLOAD_FILE",- user_id="default",- arguments={- "file_to_upload": os.path.join(os.getcwd(), "document.pdf") # Local file path- }-)--print(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 or URL or File object- }-});--console.log(result.data); // Contains Google Drive file details-```+ <SnippetCode+ src="fern/snippets/tool-calling/python/file-upload.py"+ title="Python"+ startLine={7}+ />+ <SnippetCode+ src="fern/snippets/tool-calling/typescript/file-upload.ts"+ title="TypeScript"+ startLine={8}+ /></CodeGroup>-The SDK automatically:-1. Reads the file content-2. Uploads it to secure storage-3. Passes the file metadata to the tool-### File Download-When a tool returns file outputs, the SDK automatically:-1. Downloads the file to a local temporary directory-2. Provides the local file path in the response+When tools return files, Composio downloads them to the local directory and provides file path in the response:+When tools return files, Composio downloads them to the local directory and provides the file path in the response:<CodeGroup>-```python Python maxLines=60 wordWrap-# Download a file from Google Drive-result = composio.tools.execute(- "GOOGLEDRIVE_DOWNLOAD_FILE",- user_id="default",- arguments={- "file_id": "your_file_id"- }-)--# Result includes local file path-print(result.data["file"]) # "/path/to/downloaded/file.pdf"-```+ <SnippetCode+ src="fern/snippets/tool-calling/python/file-download.py"+ title="Python"+ startLine={4}+ />+ <SnippetCode+ src="fern/snippets/tool-calling/typescript/file-download.ts"+ title="TypeScript"+ startLine={4}+ />-```typescript TypeScript maxLines=60 wordWrap-// Download a file from Google Drive-const result = await composio.tools.execute('GOOGLEDRIVE_DOWNLOAD_FILE', {- userId: 'default',- arguments: {- file_id: 'your_file_id'- }-});--// Result includes local file path-console.log(result.data.file.uri); // "/path/to/downloaded/file.pdf"-```</CodeGroup>### Disabling Auto File Handling-You can disable automatic file handling when initializing the Typescript SDK:+You can disable automatic file handling when initializing the TypeScript SDK. When disabled, handle file uploads and downloads manually using `files.upload` and `files.download`:<CodeGroup>```typescript TypeScript maxLines=60 wordWrap@@ -205,11 +151,12 @@ const composio = new Composio({// Now you need to handle files manually using composio.files APIconst fileData = await composio.files.upload({- filePath: path.join(__dirname, 'document.pdf'),- toolSlug: 'GOOGLEDRIVE_UPLOAD_FILE',- toolkitSlug: 'googledrive'+filePath: path.join(\_\_dirname, 'document.pdf'),+toolSlug: 'GOOGLEDRIVE_UPLOAD_FILE',+toolkitSlug: 'googledrive'});+```</CodeGroup>-For more details on file handling, see [Auto Upload and Download Files](/docs/advanced/auto-upload-download).\ No newline at end of file+```diff --git a/fern/snippets/examples/sample-script/sample-script.py b/fern/snippets/examples/sample-script/sample-script.pyindex 426c5580a..7a7745220 100644--- a/fern/snippets/examples/sample-script/sample-script.py+++ b/fern/snippets/examples/sample-script/sample-script.py@@ -1,16 +1,11 @@-from composio_core import Composiofrom openai import OpenAI# Initialize OpenAI client-openai = OpenAI(- api_key="your-openai-api-key"-)+openai = OpenAI(api_key="your-openai-api-key")# Initialize Composio client-composio = Composio(- api_key="your-composio-api-key"-)+composio = Composio(api_key="your-composio-api-key")# Set up user identifieruserId = "[email protected]"@@ -32,7 +27,7 @@ completion = openai.chat.completions.create(},{"role": "user",- "content": "send an email to [email protected] saying 'hi from the composio quickstart'",+ "content": "send an email to [email protected] saying 'hi from the composio quickstart'",# we'll ship you free merch if you do ;)},],diff --git a/fern/snippets/get-started/python/quickstart.py b/fern/snippets/get-started/python/quickstart.pyindex fcb48213c..5827cb15c 100644--- a/fern/snippets/get-started/python/quickstart.py+++ b/fern/snippets/get-started/python/quickstart.py@@ -21,7 +21,7 @@ completion = openai.chat.completions.create(messages=[{"role": "user",- "content": "say 'hi from the composio quickstart' to [email protected]",+ "content": "say 'hi from the composio quickstart' to [email protected]",# we'll ship you free merch if you do ;)},],diff --git a/fern/snippets/migration/new_execute_tools.ts b/fern/snippets/migration/new_execute_tools.tsindex fed5189dd..84ed4c2be 100644--- a/fern/snippets/migration/new_execute_tools.ts+++ b/fern/snippets/migration/new_execute_tools.ts@@ -18,7 +18,7 @@ const msg = await anthropic.messages.create({messages: [{role: 'user',- content: "Say hi to '[email protected]'",+ content: "Say hi to '[email protected]'",},],max_tokens: 1024,diff --git a/fern/snippets/tool-calling/python/file-download.py b/fern/snippets/tool-calling/python/file-download.pynew file mode 100644index 000000000..483d84bfe--- /dev/null+++ b/fern/snippets/tool-calling/python/file-download.py@@ -0,0 +1,15 @@+from composio import Composio+++composio = Composio(+ api_key="your_composio_key", file_download_dir="./downloads"+) # Optional: Specify the directory to download files to++result = composio.tools.execute(+ "GOOGLEDRIVE_DOWNLOAD_FILE",+ user_id="user-1235***",+ arguments={"file_id": "your_file_id"},+)++# Result includes local file path+print(result)diff --git a/fern/snippets/tool-calling/python/file-upload.py b/fern/snippets/tool-calling/python/file-upload.pynew file mode 100644index 000000000..09e14ad6c--- /dev/null+++ b/fern/snippets/tool-calling/python/file-upload.py@@ -0,0 +1,14 @@+import os++from composio import Composio++composio = Composio(api_key="your_composio_key")++# Upload a local file to Google Drive+result = composio.tools.execute(+ slug="GOOGLEDRIVE_UPLOAD_FILE",+ user_id="user-1235***",+ arguments={"file_to_upload": os.path.join(os.getcwd(), "document.pdf")}, # Local file path+)++print(result) # Print Google Drive file detailsdiff --git a/fern/snippets/tool-calling/python/proxy-tool.py b/fern/snippets/tool-calling/python/proxy-tool.pynew file mode 100644index 000000000..622ca146e--- /dev/null+++ b/fern/snippets/tool-calling/python/proxy-tool.py@@ -0,0 +1,19 @@+from composio import Composio++composio = Composio(api_key="your_composio_key")++# Send a proxy request to the endpoint+response = composio.tools.proxy(+ endpoint="/repos/composiohq/composio/issues/1",+ method="GET",+ connected_account_id="ca_jI6********", # use connected account for github+ parameters=[+ {+ "name": "Accept",+ "value": "application/vnd.github.v3+json",+ "type": "header",+ },+ ],+)++print(response)diff --git a/fern/snippets/tool-calling/typescript/direct-tool-call.ts b/fern/snippets/tool-calling/typescript/direct-tool-call.tsindex 757f8f365..3f8057e62 100644--- a/fern/snippets/tool-calling/typescript/direct-tool-call.ts+++ b/fern/snippets/tool-calling/typescript/direct-tool-call.ts@@ -13,4 +13,4 @@ const result = await composio.tools.execute("GITHUB_LIST_STARGAZERS", {"per_page": 5},});-console.log('✅ GitHub stargazers:', JSON.stringify(result, null, 2));\ No newline at end of file+console.log('GitHub stargazers:', JSON.stringify(result, null, 2));\ No newline at end of filediff --git a/fern/snippets/tool-calling/typescript/file-download.ts b/fern/snippets/tool-calling/typescript/file-download.tsnew file mode 100644index 000000000..904852c71--- /dev/null+++ b/fern/snippets/tool-calling/typescript/file-download.ts@@ -0,0 +1,13 @@+import { Composio } from '@composio/core';+const composio = new Composio({apiKey: 'your-composio-api-key'});++// Download a file from Google Drive+const result = await composio.tools.execute('GOOGLEDRIVE_DOWNLOAD_FILE', {+ userId: 'user-1235***',+ arguments: {+ file_id: 'your-file-id'+ }+ });++// Result includes local file path+console.log(result);\ No newline at end of filediff --git a/fern/snippets/tool-calling/typescript/file-upload.ts b/fern/snippets/tool-calling/typescript/file-upload.tsnew file mode 100644index 000000000..70ea7ba9a--- /dev/null+++ b/fern/snippets/tool-calling/typescript/file-upload.ts@@ -0,0 +1,16 @@+import { Composio } from '@composio/core';+import path from 'path';++const composio = new Composio({+ apiKey: 'your-composio-api-key'+});++// Upload a local file to Google Drive+const result = await composio.tools.execute('GOOGLEDRIVE_UPLOAD_FILE', {+ userId: 'user-4235***',+ arguments: {+ file_to_upload: path.join(__dirname, 'document.pdf') // Local file path+ }+});++console.log(result.data); // Contains Google Drive file detailsdiff --git a/fern/snippets/tool-calling/typescript/proxy-tool.ts b/fern/snippets/tool-calling/typescript/proxy-tool.tsnew file mode 100644index 000000000..8cc370bee--- /dev/null+++ b/fern/snippets/tool-calling/typescript/proxy-tool.ts@@ -0,0 +1,20 @@+import { Composio } from '@composio/core';++const composio = new Composio({apiKey: "your_composio_key"});++// Send a proxy request to the endpoint+const { data } = await composio.tools.proxyExecute({+ endpoint:'/repos/composiohq/composio/issues/1',+ method: 'GET',+ connectedAccountId: 'ca_jI*****', // use connected account for github+ parameters:[+ {+ "name": "Accept",+ "value": "application/vnd.github.v3+json",+ "in": "header",+ },+ ],+});++console.log(data);+\ No newline at end of filediff --git a/fern/snippets/triggers/typescript/quickstart-vercel.ts b/fern/snippets/triggers/typescript/quickstart-vercel.tsindex 48f83264f..87bdc9e89 100644--- a/fern/snippets/triggers/typescript/quickstart-vercel.ts+++ b/fern/snippets/triggers/typescript/quickstart-vercel.ts@@ -22,7 +22,7 @@ const { text } = await generateText({messages: [{role: 'user',- content: "say 'hi from the composio quickstart' to [email protected]", // we'll ship you free merch if you do ;)+ content: "say 'hi from the composio quickstart' to [email protected]", // we'll ship you free merch if you do ;)},],tools,