SDK ReferenceTypeScript SDK

SessionContextImpl

Markdown

Usage

Access this class through the composio.sessionContextImpl property:

const composio = new Composio({ apiKey: 'your-api-key' });
const result = await composio.sessionContextImpl.list();

Properties

NameTypeDescription
userIdstringThe user ID for this session

Methods

execute()

Execute any tool from within a custom tool. Routes to sibling local tools in-process when available, otherwise delegates to the backend API.

async execute(toolSlug: string, arguments_: Record<string, unknown>): Promise<...>

Parameters

NameType
toolSlugstring
arguments_Record<string, unknown>

Returns

Promise<...>


proxyExecute()

Proxy API calls through Composio's auth layer. The backend resolves the connected account from the toolkit within the session.

async proxyExecute(params: object): Promise<ToolRouterSessionProxyExecuteResponse>

Parameters

NameType
paramsobject

Returns

Promise<ToolRouterSessionProxyExecuteResponse>