﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
canonical_url: "https://docs.composio.dev/reference/sdk-reference/python/session"
markdown_url: "https://docs.composio.dev/reference/sdk-reference/python/session.md"
product: "platform"
version: null
last_updated: null
---

# Session (/reference/sdk-reference/python/session)

## Properties [#properties]

| Name             | Type                              |        |
| ---------------- | --------------------------------- | ------ |
| `session_id`     | `str`                             |        |
| `config`         | `ToolRouterSessionConfig`         |        |
| `experimental`   | `'ToolRouterSessionExperimental'` |        |
| `config_version` | \`int                             | None\` |
| `preload`        | `Any`                             |        |

## Methods [#methods]

### tools() [#tools]

Get provider-wrapped tools for execution with your AI framework.  Returns tools configured for this session, wrapped in the format expected by your AI provider (OpenAI, Anthropic, LangChain, etc.).  When custom tools are bound to the session, execution of COMPOSIO\_MULTI\_EXECUTE\_TOOL is intercepted: local tools are executed in-process, remote tools are sent to the backend.

```python signature
def tools(modifiers: 'Modifiers' | None = ...) -> TToolCollection
```
**Parameters**

| Name         | Type                  |
| ------------ | --------------------- |
| `modifiers?` | `'Modifiers' \| None` |

**Returns**

`TToolCollection`

***

### authorize() [#authorize]

Authorize a toolkit for the user and get a connection request.  Initiates the OAuth flow and returns a ConnectionRequest with redirect URL.

```python signature
def authorize(toolkit: str, *, callback_url: str | None = ..., alias: str | None = ..., experimental: session_link_params.Experimental | None = ...) -> ConnectionRequest
```
**Parameters**

| Name            | Type                                       | Description                                                                                                                                                                                                                     |
| --------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `toolkit`       | `str`                                      |                                                                                                                                                                                                                                 |
| `callback_url?` | `str \| None`                              |                                                                                                                                                                                                                                 |
| `alias?`        | `str \| None`                              | Human-readable alias for the connection. Must be unique per userId and toolkit within the project.                                                                                                                              |
| `experimental?` | `session_link_params.Experimental \| None` | Experimental options for this connection. Pass an `Experimental` dict with `account_type` and/or `acl_config_for_shared` to create a SHARED connection with a per-user ACL. Experimental — shape may change in future releases. |

**Returns**

`ConnectionRequest`

***

### toolkits() [#toolkits]

Get toolkit connection states for the session.

```python signature
def toolkits(*, toolkits: List[str] | None = ..., next_cursor: str | None = ..., limit: int | None = ..., is_connected: bool | None = ..., search: str | None = ...) -> ToolkitConnectionsDetails
```
**Parameters**

| Name            | Type                |
| --------------- | ------------------- |
| `toolkits?`     | `List[str] \| None` |
| `next_cursor?`  | `str \| None`       |
| `limit?`        | `int \| None`       |
| `is_connected?` | `bool \| None`      |
| `search?`       | `str \| None`       |

**Returns**

`ToolkitConnectionsDetails`

***

### search() [#search]

Search for tools by semantic use case.  Returns relevant tools for the given query with schemas and guidance.

```python signature
def search(*, query: str, model: str | None = ...) -> ToolRouterSessionSearchResponse
```
**Parameters**

| Name     | Type          |
| -------- | ------------- |
| `query`  | `str`         |
| `model?` | `str \| None` |

**Returns**

`ToolRouterSessionSearchResponse`

***

### execute() [#execute]

Execute a tool within the session.  Use `tool_slug=...` (not the direct Tools API's `slug=...`) and `arguments={...}`. The return value is a Pydantic model: read `result.result_type == "completed"` for execution success, `result.model_dump(mode="json")` for a JSON-compatible dictionary, or `result.model_dump_json()` for a JSON string. Unlike provider helper results and `after_execute` modifier dictionaries, it has no `successful` key. This call has no model tool-call ID; retain that ID separately when building provider messages.  For custom tools, accepts the full slug (e.g. "LOCAL\_GREP") or the original slug (e.g. "GREP") when that original slug is unique across the session's custom tools and toolkits. Custom tools are executed in-process; remote tools are sent to the Composio backend.

```python signature
def execute(tool_slug: str, *, arguments: Dict[str, Any] | None = ..., account: str | None = ..., input_responses: Dict[str, ToolRouterInputResponse] | None = ..., request_state: str | None = ...) -> ToolRouterSessionExecuteResponse
```
**Parameters**

| Name               | Type                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------ | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tool_slug`        | `str`                                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `arguments?`       | `Dict[str, Any] \| None`                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `account?`         | `str \| None`                                | Account ID or alias for direct app tool execution in multi-account sessions. Helper/meta tools either ignore this top-level field or define their own account-selection fields.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `input_responses?` | `Dict[str, ToolRouterInputResponse] \| None` | Experimental. The user's answers to an earlier `ToolInputRequiredError`, keyed by the IDs in its `input_requests`. Repeat the same call (same tool and arguments) with them. An approved call runs; a denied or declined one returns `result_type="failed"`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `request_state?`   | `str \| None`                                | Experimental. The `request_state` of that error, sent back unchanged. Both paths return a `ToolRouterSessionExecuteResponse` with `data`, `error`, `log_id`, `result_type`, and `instant_charge` attributes. `result_type` is `"completed"`, `"failed"` or `"blocked"`; a failed execution can carry a `None` or empty `error`, so read `result_type` to tell them apart. A `"blocked"` call (a session hook blocked it) has empty `data`, the hook's message in `error`, and `block_reason` (`type` and `hook_id`). `hook_results` lists every session hook that applied. A log ID correlates an execution; it does not prove that a provider performed a side effect. Inspect the tool-specific `data` as well. Transport and authentication errors raise instead of returning an execution result. Handle authentication recovery separately from returned tool failures; retry/idempotency decisions belong to you. |

**Returns**

`ToolRouterSessionExecuteResponse`

**Raises**

* `ToolInputRequiredError` — If the tool needs input from the user (for example an approval) before it can run. Nothing was executed.
* `ValidationError` — If the API response carries no `result_type`, or one this SDK does not know.

***

### execute\_meta() [#execute_meta]

Execute a Composio meta tool (`COMPOSIO_*`) within the session.  `execute` also runs meta tools. This method only accepts meta tool slugs, so a typo is a type error instead of a failed request. The call is sent to the Composio backend as is: custom tools named in a `COMPOSIO_MULTI_EXECUTE_TOOL` call are not run in-process here.

```python signature
def execute_meta(slug: ToolRouterSessionMetaToolSlug, *, arguments: Dict[str, Any] | None = ..., input_responses: Dict[str, ToolRouterInputResponse] | None = ..., request_state: str | None = ...) -> ToolRouterSessionExecuteResponse
```
**Parameters**

| Name               | Type                                         | Description                                                                                                                                                         |
| ------------------ | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `slug`             | `ToolRouterSessionMetaToolSlug`              | The meta tool slug to execute.                                                                                                                                      |
| `arguments?`       | `Dict[str, Any] \| None`                     | Optional meta tool arguments.                                                                                                                                       |
| `input_responses?` | `Dict[str, ToolRouterInputResponse] \| None` | Experimental. The user's answers to an earlier `ToolInputRequiredError`, keyed by the IDs in its `input_requests`. Repeat the same call with them, as in `execute`. |
| `request_state?`   | `str \| None`                                | Experimental. The `request_state` of that error, sent back unchanged.                                                                                               |

**Returns**

`ToolRouterSessionExecuteResponse` — The tool execution result, in the same shape as `execute`.

**Raises**

* `ToolInputRequiredError` — If the tool needs input from the user (for example an approval) before it can run. Nothing was executed.
* `ValidationError` — If the API response carries no `result_type`, or one this SDK does not know.

**Example**

```python
result = session.execute_meta(
    "COMPOSIO_SEARCH_TOOLS",
    arguments={"queries": [{"use_case": "send an email"}]},
)
print(result.result_type, result.data)
```
***

### local\_tools() [#local_tools]

List all local tools registered in this session.  Returns tools with their final slugs, schemas, and resolved toolkit.

```python signature
def local_tools(*, toolkit: str | None = ...) -> List[RegisteredLocalTool]
```
**Parameters**

| Name       | Type          | Description                                         |
| ---------- | ------------- | --------------------------------------------------- |
| `toolkit?` | `str \| None` | Filter by toolkit slug (e.g. 'gmail', 'DEV\_TOOLS') |

**Returns**

`List[RegisteredLocalTool]` — Array of registered local tools

***

### local\_toolkits() [#local_toolkits]

List all toolkits of local tools registered in this session.  Returns toolkits with their tools showing final slugs.

```python signature
def local_toolkits() -> List[RegisteredLocalToolkit]
```
**Returns**

`List[RegisteredLocalToolkit]`

***

### custom\_tools() [#custom_tools]

Deprecated alias for `local_tools`.

```python signature
def custom_tools(*, toolkit: str | None = ...) -> List[RegisteredCustomTool]
```
**Parameters**

| Name       | Type          |
| ---------- | ------------- |
| `toolkit?` | `str \| None` |

**Returns**

`List[RegisteredCustomTool]`

***

### custom\_toolkits() [#custom_toolkits]

Deprecated alias for `local_toolkits`.

```python signature
def custom_toolkits() -> List[RegisteredCustomToolkit]
```
**Returns**

`List[RegisteredCustomToolkit]`

***

### proxy\_execute() [#proxy_execute]

Proxy an API call through Composio's auth layer.

```python signature
def proxy_execute(*, toolkit: str, endpoint: str, method: Literal['GET', 'POST', 'PUT', 'DELETE', 'PATCH'], body: Any = ..., parameters: List[Dict[str, Any]] | None = ...) -> ToolRouterSessionProxyExecuteResponse
```
**Parameters**

| Name          | Type                                               | Description                                    |
| ------------- | -------------------------------------------------- | ---------------------------------------------- |
| `toolkit`     | `str`                                              | Composio toolkit slug (e.g. 'gmail', 'github') |
| `endpoint`    | `str`                                              | API endpoint URL                               |
| `method`      | `Literal['GET', 'POST', 'PUT', 'DELETE', 'PATCH']` | HTTP method                                    |
| `body?`       | `Any`                                              | Request body (for POST, PUT, PATCH)            |
| `parameters?` | `List[Dict[str, Any]] \| None`                     | Query/header parameters                        |

**Returns**

`ToolRouterSessionProxyExecuteResponse` — The proxied API response with `result_type="completed"`, or `result_type="blocked"` with the hook's `message` when a session hook blocked the request (it then has no `status`)

**Raises**

* `ToolInputRequiredError` — If the call needs input from the user before it can run. Nothing was executed.

***

### update() [#update]

Partially update the session configuration.  Only the fields provided are changed; omitted fields are preserved. For each policy block `None` removes the stored override (which can increase access: `toolkits=None` restores the unrestricted default, while `toolkits={"enable": []}` denies every app toolkit and is sent as-is). Supplied `tools`, `auth_configs` and `connected_accounts` maps replace the stored map entirely. Inside `manage_connections`, `callback_url=None` removes only the stored callback URL. Experimental `instant` accepts `False` to disable billed access or an object to set its filters; it does not accept `None`. Any object, even one that only sets `return_instant_charge` or `return_prices_in_search`, re-enables Instant usage on a Session set to `False`. `proxy_execute` takes a bool or `{"enable": bool}`; `True` exposes the `COMPOSIO_PROXY_EXECUTE` meta tool, `False` also turns off the sandbox `proxy_execute()` helper, and `None` removes the stored block. `hooks` replaces the whole list of hooks, and `None` removes every hook. `hooks` cannot be combined with `experimental={'session_config_id': ...}` (`hooks=None` counts).  By default the request carries no precondition: the last writer wins. Pass `expected_config_version` (for example this object's `config_version`) to make the update conditional: the API then applies it only when the stored version still matches, and a concurrent change raises `SessionConfigConflictError` (HTTP 409) instead of being overwritten. The API must support the `expected_config_version` field; otherwise it rejects the request with a 400. `expected_config_version=False` is the same as omitting it. The PATCH is never retried by the transport, so a 409 is reported exactly once. On conflict this object stays unchanged: re-fetch the session with `composio.sessions.use(session_id)` and retry against the fresh `config_version`.  `config`, `config_version` and `preload` are refreshed in place only after a successful response, and the updated `config` is returned.  `workbench` is a backwards-compatible alias for `sandbox`. Prefer `sandbox` in new code.  All other parameters use the same types as the generated `client.tool_router.session.patch()` method.

```python signature
def update(*, toolkits: Union[session_patch_params.Toolkits | None, 'Omit'] = ..., instant: Union[Literal[False], ToolRouterInstantConfig, 'Omit'] = ..., tools: Union[Dict[str, session_patch_params.Tools] | None, 'Omit'] = ..., tags: Union[session_patch_params.Tags | None, 'Omit'] = ..., auth_configs: Union[Dict[str, str] | None, 'Omit'] = ..., connected_accounts: Union[Dict[str, SequenceNotStr[str]] | None, 'Omit'] = ..., manage_connections: Union[session_patch_params.ManageConnections | None, ToolRouterUpdateManageConnectionsConfig | None, 'Omit'] = ..., sandbox: Union[session_patch_params.Workbench | None, 'Omit'] = ..., workbench: Union[session_patch_params.Workbench | None, 'Omit'] = ..., multi_account: Union[session_patch_params.MultiAccount | None, ToolRouterUpdateMultiAccountConfig | None, 'Omit'] = ..., proxy_execute: Union[Union[bool, ToolRouterProxyExecuteConfig] | None, 'Omit'] = ..., hooks: Union[List[ToolRouterHook] | None, 'Omit'] = ..., preload: Union[session_patch_params.Preload | None, 'Omit'] = ..., search: Union[session_patch_params.Search | None, 'Omit'] = ..., execute: Union[session_patch_params.Execute | None, 'Omit'] = ..., experimental: Union[session_patch_params.Experimental | None, ToolRouterUpdateExperimentalConfig | None, 'Omit'] = ..., expected_config_version: Union[int, None, Literal[False]] = ...) -> ToolRouterSessionConfig
```
**Parameters**

| Name                       | Type                                                                                                             |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `toolkits?`                | `Union[session_patch_params.Toolkits \| None, 'Omit']`                                                           |
| `instant?`                 | `Union[Literal[False], ToolRouterInstantConfig, 'Omit']`                                                         |
| `tools?`                   | `Union[Dict[str, session_patch_params.Tools] \| None, 'Omit']`                                                   |
| `tags?`                    | `Union[session_patch_params.Tags \| None, 'Omit']`                                                               |
| `auth_configs?`            | `Union[Dict[str, str] \| None, 'Omit']`                                                                          |
| `connected_accounts?`      | `Union[Dict[str, SequenceNotStr[str]] \| None, 'Omit']`                                                          |
| `manage_connections?`      | `Union[session_patch_params.ManageConnections \| None, ToolRouterUpdateManageConnectionsConfig \| None, 'Omit']` |
| `sandbox?`                 | `Union[session_patch_params.Workbench \| None, 'Omit']`                                                          |
| `workbench?`               | `Union[session_patch_params.Workbench \| None, 'Omit']`                                                          |
| `multi_account?`           | `Union[session_patch_params.MultiAccount \| None, ToolRouterUpdateMultiAccountConfig \| None, 'Omit']`           |
| `proxy_execute?`           | `Union[Union[bool, ToolRouterProxyExecuteConfig] \| None, 'Omit']`                                               |
| `hooks?`                   | `Union[List[ToolRouterHook] \| None, 'Omit']`                                                                    |
| `preload?`                 | `Union[session_patch_params.Preload \| None, 'Omit']`                                                            |
| `search?`                  | `Union[session_patch_params.Search \| None, 'Omit']`                                                             |
| `execute?`                 | `Union[session_patch_params.Execute \| None, 'Omit']`                                                            |
| `experimental?`            | `Union[session_patch_params.Experimental \| None, ToolRouterUpdateExperimentalConfig \| None, 'Omit']`           |
| `expected_config_version?` | `Union[int, None, Literal[False]]`                                                                               |

**Returns**

`ToolRouterSessionConfig`

***

### list\_config\_history() [#list_config_history]

List the configuration history of this session, newest first.  Every `update()` records a new config version; this returns those versions with cursor-based pagination.

```python signature
def list_config_history(**query: Unpack[session_config_history_params.SessionConfigHistoryParams]) -> session_config_history_response.SessionConfigHistoryResponse
```
**Parameters**

| Name     | Type                                                               |
| -------- | ------------------------------------------------------------------ |
| `query?` | `Unpack[session_config_history_params.SessionConfigHistoryParams]` |

**Returns**

`session_config_history_response.SessionConfigHistoryResponse` — The config versions under `.items` plus pagination fields.

**Example**

```python
history = session.list_config_history(limit=10)
for entry in history.items:
    print(entry.version, entry.is_current)
```
***

### delete() [#delete]

Delete this session.  Deleted sessions immediately stop being retrievable or executable. An already-deleted session surfaces the backend 404.

```python signature
def delete() -> ToolRouterSessionDeleteResponse
```

**Returns**

`ToolRouterSessionDeleteResponse`

***

[View source](https://github.com/composiohq/composio/blob/next/python/composio/core/models/tool_router_session.py#L336)

---

📚 **More documentation:** [View all docs](https://docs.composio.dev/llms.txt) | [Changelog](https://docs.composio.dev/docs/changelog.md) | [Glossary](https://docs.composio.dev/llms.mdx/reference/glossary) | [Examples](https://docs.composio.dev/llms.mdx/examples) | [API Reference](https://docs.composio.dev/llms.mdx/reference)

---

# Composio SDK — Notes for AI Code Generators

**Purpose:** Reference for generating current (v3) [Composio](https://composio.dev/) integration code.
**Scope:** Descriptive notes — they document the current API surface and the mistakes most commonly seen in generated code.

---

## 1. Recommended Integration: Sessions

For agent tool delivery, Composio supports **Native Tools** (with a provider package) and **MCP** (no provider package needed).

For application-owned tools or deterministic backend code, use [managed authentication with Proxy Execute](/docs/authentication/managed-auth-for-custom-tools). A session can provide a user-scoped runtime context without an LLM or MCP. Composio authenticates provider requests server-side; connected-account reads redact credentials and aren't a supported token-export workflow.

### Native Tools

#### Python

```python
# ✅ CORRECT — Python (defaults to OpenAI)
from composio import Composio

composio = Composio()
session = composio.create(user_id="user_123")
tools = session.tools()
# Pass tools to your agent/LLM framework
```

#### TypeScript

```typescript
// ✅ CORRECT — TypeScript (defaults to OpenAI)
import { Composio } from "@composio/core";

const composio = new Composio();
const session = await composio.create("user_123");
const tools = await session.tools();
// Pass tools to your agent/LLM framework
```

#### API

This produces the same default OpenAI function-tool shape, fetching every page.

```bash
set -euo pipefail
SESSION=$(curl --fail-with-body -s -X POST https://backend.composio.dev/api/v3.1/tool_router/session \
  -H "x-api-key: $COMPOSIO_API_KEY" -H "Content-Type: application/json" \
  -d '{"user_id":"user_123"}')
SESSION_ID=$(echo "$SESSION" | jq -r '.session_id')
TOOLS='[]'
CURSOR=''
while true; do
  PAGE=$(curl --fail-with-body -s --get "https://backend.composio.dev/api/v3.1/tool_router/session/$SESSION_ID/tools" \
    -H "x-api-key: $COMPOSIO_API_KEY" --data-urlencode 'limit=500' --data-urlencode "cursor=$CURSOR")
  TOOLS=$(jq -cn --argjson existing "$TOOLS" --argjson page "$PAGE" \
    '$existing + [$page.items[] | {type:"function",function:{name:.slug,description:.description,parameters:.input_parameters}}]')
  CURSOR=$(echo "$PAGE" | jq -r '.next_cursor // empty')
  [ -n "$CURSOR" ] || break
done
printf '%s\n' "$TOOLS"
```

For other providers, pass the provider explicitly. Provider packages follow the naming convention: `composio_<provider>` for Python, `@composio/<provider>` for TypeScript.

### MCP

Use `session.mcp.url` and `session.mcp.headers` with any MCP-compatible client (Claude Desktop, Cursor, OpenAI Agents, etc.). No provider package needed.

---

## 2. Integration Notes

- `composio.create(user_id)` is the standard entry point for agent integrations. Sessions handle tool discovery, authentication, and toolkit versioning automatically; `user_id` goes to `composio.create()` — individual tool calls in session mode don't take one.
- Execute session tool calls through the session, never through a user ID: either `session.execute(tool_slug, arguments=...)` / `session.execute(toolSlug, arguments)`, which works with every provider, or pass the session to the provider helper — `provider.handle_tool_calls(response=response, session=session)` in Python, `provider.handleToolCalls(session, response)` in TypeScript. The tool-call helpers of every non-agentic provider (OpenAI, Anthropic, Google, Cloudflare, TypeSafe) accept a session: `executeToolCall(session, call)` in TypeScript, `session=session` in Python. Agentic providers execute session tools on their own. Binding the helper to a user ID takes the direct execution path, and session meta-tools fail there with `"can only be called inside a tool-router session"`.
- Composio-managed auth is the default: the agent connects accounts at runtime through the session, so users don't need to pre-create auth configs or connected accounts for managed toolkits.
- Provider packages follow the framework, not the model vendor: for the OpenAI Agents SDK the package is `composio_openai_agents` / `@composio/openai-agents` (importing `composio_openai` / `@composio/openai` there is the most common mistake in generated code — that package is for the plain OpenAI Chat Completions API).
- **Direct execution** (`composio.tools.get()`, `composio.tools.execute()`, `provider.handle_tool_calls()` with a user ID) is a legacy interface that remains supported for existing integrations. Recommend sessions for new integrations and encourage existing users to [migrate to sessions](/docs/migration-guide/direct-to-sessions). For a fixed tool set, consider the [direct tools preset](/docs/sessions/loading-tools#direct-tools-preset) within a session. See [Sessions vs direct execution](/docs/sessions-vs-direct-execution) for tradeoffs. Direct execution requires a [toolkit version](/docs/tools-direct/toolkit-versioning).

---

# 3. Calling the REST API directly

## REST API version

The current REST API version is **v3.1**, served at `https://backend.composio.dev/api/v3.1`. Prefer it for new code and new examples.

`https://backend.composio.dev/api/v3` is the previous version. It is frozen with pinned tool-version defaults and remains supported — existing v3 integrations keep working and do not need to migrate.

## Tool-endpoint version defaults on v3.1

On v3.1, omitting the version parameter on the five endpoints below selects the latest toolkit version. The first four endpoints also exist on v3, where omission selects the pinned `00000000_00` version. `POST /tools/scopes/required` is v3.1-only.

| Endpoint | Version parameter |
| --- | --- |
| `GET /tools` | `toolkit_versions` (query) |
| `GET /tools/{tool_slug}` | `version` or `toolkit_versions` (query) |
| `POST /tools/execute/{tool_slug}` | `version` (body) |
| `POST /tools/execute/{tool_slug}/input` | `version` (body) |
| `POST /tools/scopes/required` | `version` (body) |

A v3.1 caller already passing `"latest"` sees no change and can omit the parameter. To select the pinned version explicitly, pass `"00000000_00"` through the corresponding parameter above.

This version-default change is limited to the five endpoints above.


---

## Terminology Migration (old → current)

If you encounter these terms in error messages, old documentation, or user prompts, translate them to the current equivalents. **Do not use the old terms in generated code or explanations.**

| Old term (v1/v2) | Current term (v3) | In code |
|---|---|---|
| entity ID | user ID | `user_id` parameter |
| actions | tools | e.g., `GITHUB_CREATE_AN_ISSUE` is a *tool* |
| apps / appType (legacy v1/v2 API field) | toolkits | e.g., `github` is a *toolkit*. The current word **App** is *not* legacy: it names a catalog grouping of sibling toolkits (the Notion app groups `notion` and `notion_mcp`); do not translate it |
| integration / integration ID | auth config / auth config ID | `auth_config_id` parameter |
| connection | connected account | `connected_accounts` namespace |
| ComposioToolSet / OpenAIToolSet | `Composio` class with a provider | `Composio(provider=...)` |
| toolset | provider | e.g., `OpenAIProvider` |

If a user says "entity ID", they mean `user_id`. If they say "integration", they mean "auth config". Always respond using the current terminology.

