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
revert: restore auto-generated usage sections as-is
Sushmitha Mallesh4656020bc06c
diff --git a/docs/content/reference/sdk-reference/typescript/remote-file.mdx b/docs/content/reference/sdk-reference/typescript/remote-file.mdxindex eba583510..7bff04403 100644--- a/docs/content/reference/sdk-reference/typescript/remote-file.mdx+++ b/docs/content/reference/sdk-reference/typescript/remote-file.mdx@@ -5,14 +5,11 @@ description: Represents a file stored in a tool router session's file mount. Pro## Usage-`RemoteFile` is returned by session file operations such as `session.files.download()` and `session.files.upload()`:+Access this class through the `composio.remoteFile` property:```typescriptconst composio = new Composio({ apiKey: 'your-api-key' });-const session = await composio.toolRouter.use('session_123');-const file = await session.files.download('/output/report.pdf');-// file is a RemoteFile instance-const content = await file.text();+const result = await composio.remoteFile.list();```## Propertiesdiff --git a/docs/content/reference/sdk-reference/typescript/tool-router-session-files-mount.mdx b/docs/content/reference/sdk-reference/typescript/tool-router-session-files-mount.mdxindex 64d45036e..f9bad6b19 100644--- a/docs/content/reference/sdk-reference/typescript/tool-router-session-files-mount.mdx+++ b/docs/content/reference/sdk-reference/typescript/tool-router-session-files-mount.mdx@@ -5,12 +5,11 @@ description: ToolRouterSessionFilesMount class reference## Usage-Access via the `files` property on a session:+Access this class through the `composio.toolRouterSessionFilesMount` property:```typescriptconst composio = new Composio({ apiKey: 'your-api-key' });-const session = await composio.toolRouter.use('session_123');-const { items } = await session.files.list({ path: '/' });+const result = await composio.toolRouterSessionFilesMount.list();```## Methodsdiff --git a/docs/content/reference/sdk-reference/typescript/tool-router-session.mdx b/docs/content/reference/sdk-reference/typescript/tool-router-session.mdxindex 5ec083a12..c35b78e1c 100644--- a/docs/content/reference/sdk-reference/typescript/tool-router-session.mdx+++ b/docs/content/reference/sdk-reference/typescript/tool-router-session.mdx@@ -5,16 +5,11 @@ description: ToolRouterSession class reference## Usage-Obtain a session via `composio.toolRouter`:+Access this class through the `composio.toolRouterSession` property:```typescriptconst composio = new Composio({ apiKey: 'your-api-key' });--// Use an existing session-const session = await composio.toolRouter.use('session_123');--// Or create a new session-const session = await composio.toolRouter.create('user_123', { toolkits: ['github'] });+const result = await composio.toolRouterSession.list();```## Properties