capabilities.work

Execute a Tool on a User's Connected Account

A 3-step recipe with Composio. We can help you get access.

Recipe · 3 steps

Execute a Tool on a User's Connected Account

Resolve a connected account for a user and execute a tool with it.

  1. List the user's connected accounts limited to the toolkit and only those with an ACTIVE status so a usable account id can be resolved.
  2. Fetch the tool definition so its input parameters are known before execution.
  3. Execute the tool against the resolved connected account on behalf of the user, returning the structured result.
What you'll need to have ready
  • apiKey: Composio project API key sent in the x-api-key header.
  • toolkitSlug: The toolkit slug to filter connected accounts by (e.g. "googlecalendar").
  • userId: The end-user identifier whose connected account is used.
  • toolSlug: The slug of the tool to execute (e.g. "GOOGLECALENDAR_CREATE_EVENT").
  • arguments: The argument map passed to the tool, matching its input parameters.
For your developer

Arazzo workflow composio:execute-tool-on-connected-account, 3 operations: getConnectedAccounts → getToolsByToolSlug → postToolsExecuteByToolSlug. Specs on APIs.io.