Connectors
Connectors let the agent read from external SaaS systems. They are the data backbone for live artifacts: when a refresh runs, the agent calls only the connector tools that are provably read-only.
Composio
TF Design uses Composio as its connector platform — a catalog of pre-built integrations with OAuth handling, normalised tool schemas, and safety classification.
| Category | Examples |
|---|---|
| Developer | GitHub, Linear, Sentry, Vercel |
| Productivity | Notion, Google Docs, Slack, Trello, Asana |
| Storage | Google Drive, Dropbox, S3 |
Connecting
- Open Settings → Connectors, or the Connectors surface in the app.
- Browse the catalog — each connector lists its tools, scopes, and safety.
- Authenticate. OAuth tokens are held by the provider; TF Design stores connection state.
- The connector becomes callable by the agent.
Connection state per connector is one of available, connected, error, or disabled.
Tool safety
Every connector tool is classified into a sideEffect and an approval policy. Classification is derived from the tool's name, required scopes, and description.
sideEffect | Meaning | approval |
|---|---|---|
read | Fetches data, no side effects | auto |
write | Creates or modifies data | confirm |
destructive | Deletes or irreversibly changes data | disabled |
unknown | Cannot be proven read-only | confirm |
The classification is deliberately conservative: a tool whose safety cannot be proven read-only is treated as write with confirm, not as read. The reason string is carried alongside so the UI can explain the decision rather than silently blocking something.
Approval policies
| Policy | Behaviour |
|---|---|
auto | Callable without asking — the only policy eligible for refresh |
confirm | The agent asks before calling |
disabled | Blocked entirely |
Refresh eligibility
refreshEligible = sideEffect === 'read' && approval === 'auto'
This single predicate is what makes scheduled refreshes safe. It is why a marketing dashboard can refresh itself hourly while the same connector's delete endpoint stays unreachable.
How the agent uses connectors
- Reads the brief and identifies the data requirement.
- Checks the available connectors and their policies.
- Calls
readtools automatically. - Asks for confirmation before any
writetool. - Is blocked from
destructivetools unless explicitly enabled. - Uses the fetched data to populate the artifact.
An allowlist of callable tool names is enforced per connector, so even a hallucinated tool name fails at the boundary rather than reaching the provider.
CLI
"$OD_NODE_BIN" "$OD_BIN" tools connectors list --format compact
"$OD_NODE_BIN" "$OD_BIN" tools connectors execute \
--connector notion --tool notion_search --input input.json
execute requires --connector <id>, --tool <name>, and --input <file>. Requires OD_TOOL_TOKEN.
MCP
tfdesign mcp live-artifacts exposes:
| Tool | Purpose |
|---|---|
connectors_list | Discover connectors and their tools, with safety |
connectors_execute | Execute one connector tool |
Routes
| Endpoint | Method | Description |
|---|---|---|
/api/connectors | GET | Connector catalog with status |
/api/connectors/status | GET | Connection status summary |
/api/connectors/discovery | GET | Discover available connectors |
/api/connectors/:connectorId | GET | One connector with its tools and safety |
/api/connectors/:connectorId/connect | POST | Start authentication |
/api/connectors/:connectorId/connection | DELETE | Disconnect |
/api/connectors/oauth/callback/:connectorId | GET | OAuth callback |
/api/tools/connectors/list | GET | Agent-facing listing (token-authed) |
/api/tools/connectors/execute | POST | Agent-facing execution (token-authed) |
Example
- Connect a Notion workspace.
- "Create a dashboard showing all tasks in our Notion product board, grouped by status, refreshed hourly."
- The agent calls the Notion search/read tools, builds the dashboard, and registers it as a live artifact with Notion as its data source.
- On refresh, only the read tools run — the credential never gets a chance to delete anything.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Connector shows error | OAuth expired or revoked | Reconnect from Settings |
| Agent refuses to call a tool | Classified write/destructive | Confirm it explicitly, or use a read-only alternative |
| Refresh did nothing | No refresh-eligible tools on that connector | Check refreshEligible on each tool |
| Tool name not found | Not in the connector's allowlist | Call connectors_list and use the exact returned name |