Skip to main content

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.

CategoryExamples
DeveloperGitHub, Linear, Sentry, Vercel
ProductivityNotion, Google Docs, Slack, Trello, Asana
StorageGoogle Drive, Dropbox, S3

Connecting​

  1. Open Settings → Connectors, or the Connectors surface in the app.
  2. Browse the catalog — each connector lists its tools, scopes, and safety.
  3. Authenticate. OAuth tokens are held by the provider; TF Design stores connection state.
  4. 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.

sideEffectMeaningapproval
readFetches data, no side effectsauto
writeCreates or modifies dataconfirm
destructiveDeletes or irreversibly changes datadisabled
unknownCannot be proven read-onlyconfirm

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​

PolicyBehaviour
autoCallable without asking — the only policy eligible for refresh
confirmThe agent asks before calling
disabledBlocked 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​

  1. Reads the brief and identifies the data requirement.
  2. Checks the available connectors and their policies.
  3. Calls read tools automatically.
  4. Asks for confirmation before any write tool.
  5. Is blocked from destructive tools unless explicitly enabled.
  6. 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:

ToolPurpose
connectors_listDiscover connectors and their tools, with safety
connectors_executeExecute one connector tool

Routes​

EndpointMethodDescription
/api/connectorsGETConnector catalog with status
/api/connectors/statusGETConnection status summary
/api/connectors/discoveryGETDiscover available connectors
/api/connectors/:connectorIdGETOne connector with its tools and safety
/api/connectors/:connectorId/connectPOSTStart authentication
/api/connectors/:connectorId/connectionDELETEDisconnect
/api/connectors/oauth/callback/:connectorIdGETOAuth callback
/api/tools/connectors/listGETAgent-facing listing (token-authed)
/api/tools/connectors/executePOSTAgent-facing execution (token-authed)

Example​

  1. Connect a Notion workspace.
  2. "Create a dashboard showing all tasks in our Notion product board, grouped by status, refreshed hourly."
  3. The agent calls the Notion search/read tools, builds the dashboard, and registers it as a live artifact with Notion as its data source.
  4. On refresh, only the read tools run — the credential never gets a chance to delete anything.

Troubleshooting​

SymptomCauseFix
Connector shows errorOAuth expired or revokedReconnect from Settings
Agent refuses to call a toolClassified write/destructiveConfirm it explicitly, or use a read-only alternative
Refresh did nothingNo refresh-eligible tools on that connectorCheck refreshEligible on each tool
Tool name not foundNot in the connector's allowlistCall connectors_list and use the exact returned name