SDK ReferenceTypeScript SDK
SessionContextImpl
Usage
Access this class through the composio.sessionContextImpl property:
const composio = new Composio({ apiKey: 'your-api-key' });
const result = await composio.sessionContextImpl.list();Properties
| Name | Type | Description |
|---|---|---|
userId | string | The 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
| Name | Type |
|---|---|
toolSlug | string |
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
| Name | Type |
|---|---|
params | object |
Returns
Promise<ToolRouterSessionProxyExecuteResponse>