me query as a
WorkspaceUser, so authenticate with a workspaceToken. All requests go to:
The run mutation is currently named
runConnectionCapabliltity in the GraphQL
schema. The spelling includes Capabliltity. Use that exact field name until
the schema changes.Capability model
Capabilities are advertised on each provider. A provider belongs to a workspace, and a connection points at one provider byproviderKey.
The workspace’s configured integration connections. Pass
providerKey to return
only connections for one provider.The provider catalog available to the workspace. Each provider includes its
capability definitions.
Fetches the current status and result for a previously started capability run.
Returns
null if the run cannot be found in the workspace.The connection ID you pass to
runConnectionCapabliltity.The provider key for the connection. Match this against
IntegrationProvider.id
to understand which capabilities can run on the connection.The current lifecycle status of the connection. Only run capabilities on a
connection that is ready for the provider action you need.
The provider key, for example a document management provider or tax software
provider key.
The provider category used for grouping in the product.
Display information, help link, description, and the provider’s capabilities.
Looks up one capability by
value. Returns null if the provider does not
advertise that capability.The machine-readable capability identifier. Send this exact string as the
capability input when running the capability.Human-readable capability name.
Optional human-readable detail about what the capability does.
The capability type reported by the provider workflow, commonly
query or
mutation. query capabilities read data. mutation capabilities can create,
update, move, delete, sync, or otherwise change state.The JSON schema for the
params object expected by
runConnectionCapabliltity. Use this to construct valid parameters.The JSON schema for the
result returned after the capability run completes.List provider capabilities
Readworkspace.providers to discover available providers and their capability
definitions.
Look up one capability
UseIntegrationProvider.capability(value:) when you already know the provider
and capability value and only need that one definition.
Arguments
The exact
ProviderCapability.value to look up on each provider.List connections for a provider
Capabilities run on a specific connection, not directly on a provider. Useworkspace.connections(providerKey:) to find the connection ID.
Arguments
Optional provider key. Omit it to return connections for all providers.
Run a capability
UserunConnectionCapabliltity to start a provider capability workflow. The
mutation validates params against the provider capability’s inputSchema,
refreshes the connection credentials when possible, starts a background run, and
returns a run ID.
Arguments
The connection to run the capability against. Get this from
workspace.connections.The exact
ProviderCapability.value to run.The capability parameters. Shape this object from the capability’s
inputSchema. Send {} when the schema accepts an empty object.Response
The capability run ID. Poll
workspace.connectionCapabilityRun(id:) with this
value.The Temporal workflow status. A newly started run usually returns
RUNNING.Error detail when the run fails.
null while the run is running or when it
completes successfully.The provider-specific result.
null until the workflow returns a result.Example request
Example response
Poll a capability run
After the mutation returns a run ID, pollworkspace.connectionCapabilityRun(id:) until the run completes or fails.
Arguments
The ID returned by
runConnectionCapabliltity.Response
The run status and result. Returns
null if the run does not exist or does not
belong to the authenticated workspace.MCP usage pattern
For Filed MCP tools and AI agents, use this sequence:- Query
workspace.providersand readProviderCapability.inputSchema. - Query
workspace.connections(providerKey:)and choose the connection ID. - If the capability
kindismutation, confirm the action with the user. - Call
runConnectionCapabliltitywith schema-validparams. - Poll
workspace.connectionCapabilityRun(id:)until the run is no longerRUNNING.