Skip to content
gist.link ↗

Agent Workforce types

Type definitions referenced by Agent Workforce queries and mutations.

Object. A suite app as seen by the access editor.

Field Type Description
key String! —
name String! —
description String! —
available Boolean! False when the app isn’t deployed here (grants are kept but inactive).
canRead Boolean! —
canWrite Boolean! —
readOnlyReason String —
genericAccess Boolean! True when read/write unlock full GraphQL access (suite.query / suite.mutate).
readTools [AccessTool!]! —
writeTools [AccessTool!]! —

Object.

Field Type Description
apps [AccessApp!]! —
connections [ApiConnection!]! —
mcpServers [AccessMcpServer!]! —

Object.

Field Type Description
slug String! —
name String! —
url String! —
status String! —
enabled Boolean! —
tools [AccessMcpTool!]! —

Object.

Field Type Description
key String! —
name String! —
description String! —
readOnly Boolean! —

Object.

Field Type Description
key String! —
description String! —

Object.

Field Type Description
uuid ID! —
workforceUuid ID! —
parentUuid ID Parent agent, when this is a subagent of another agent.
role String! —
displayName String! —
color String —
systemPrompt String! —
modelProvider String! —
modelName String! —
permissions JSON! Structured access grants: {apps: {app: [“read”,“write”]}, connections: {slug: {read, write, actions: [key]}}, mcp: {slug: [tool]}, web: {mode: off|domains|any, domains: [host]}}.
allowedTools [String!]! Effective tool keys derived from permissions (read-only).
isSupervisor Boolean! —
positionX Float! —
positionY Float! —
status String! idle | thinking | acting | waiting_approval | budget_exhausted | paused
currentActivity String —
budgetTotalMinor Int Lifetime money cap in minor units; null = uncapped.
budgetCurrency String! —
lifetimeCostMinor Int! Lifetime spend so far in minor units.
dailyTokenCap Int Tokens allowed per UTC day; null = uncapped.
tokensUsedToday Int! Tokens used today (UTC).
memorySnippet String Latest work summary (the agent’s durable memory).
lastSummaryDriveUrl String —
createdAt String! —
updatedAt String! —

Object.

Field Type Description
uuid ID! —
sessionUuid ID! —
fromAgentUuid ID —
toAgentUuid ID —
taskUuid ID —
role String! user | assistant | tool | system
content String! —
tokens Int! —
createdAt String! —

Object.

Field Type Description
edges [AgentMessageEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node AgentMessage! —

Object.

Field Type Description
uuid ID! —
sessionUuid ID! —
taskUuid ID! —
agentUuid ID —
question String! —
answer String —
status String! pending | answered | cancelled
createdAt String! —
answeredAt String —

Object.

Field Type Description
day String! —
tokensIn Int! —
tokensOut Int! —
costMinor Int! —
llmCalls Int! —

Object. An admin-defined call on an API connection (becomes tool api.<slug>.<key>).

Field Type Description
key String! —
toolKey String! —
name String! —
description String! —
method String! GET | HEAD | POST | PUT | PATCH | DELETE
path String! Path ({var} placeholders) or absolute https URL on the connection’s hosts.
bodyMode String! none | fixed | template | agent
contentType String! json | form | text
body String! Fixed body, or a template with {{var}} placeholders.
variables [ApiActionVariable!]! —

Object.

Field Type Description
name String! —
type String! string | number | integer | boolean
description String! —
required Boolean! —

Object. An external HTTP API agents may be granted access to.

Field Type Description
uuid ID! —
name String! —
slug String! Immutable key used in tool names (api.<slug>.*).
description String —
baseUrl String! —
extraHosts [String!]! —
hosts [String!]! Every host requests may reach (base URL host + extra hosts).
headers [Header!]! Non-secret static headers sent with every request.
auth ConnectionAuth! —
actions [ApiAction!]! —
enabled Boolean! —
createdAt String! —
updatedAt String! —

Scalar. The Boolean scalar type represents true or false.

Object. How a connection authenticates. Secrets are write-only: only the type, placement and a masked hint are ever returned.

Field Type Description
type String! none | bearer_token | api_key | basic_auth
hint String Masked preview, e.g. ••••ab12.
in String header | query (where the secret is sent).
name String Header or query-parameter name.
credentialUuid ID —
credentialName String —
managed Boolean! False when a legacy shared credential is attached.

Input object. Authentication for a connection. type: none | bearer_token (token) | api_key (name + value, in: header|query) | basic_auth (username + password) | existing (credentialUuid of a saved credential). Omit the secret fields on update (same type) to keep the stored secret.

Field Type Description
type String! —
token String —
name String —
value String —
in String —
username String —
password String —
credentialUuid ID —

Input object.

Field Type Description
name String! —
description String —
type String! —
secret CredentialSecretInput! —

Input object.

Field Type Description
name String! —
description String —
transport String Transport: streamable_http (default) or sse.
url String! —
auth ConnectionAuthInput Inline authentication (preferred).
credentialUuid ID Deprecated: attach a stored credential.
enabled Boolean —

Input object.

Field Type Description
name String! —
description String —
standingGoal String —
approvalMode String —
maxSteps Int —
allowedHttpDomains [String!] —

Object. A securely-stored third-party credential. The secret itself is sealed at rest and never returned — only the name, type, and a masked hint are exposed.

Field Type Description
uuid ID! —
name String! —
description String —
type String! One of: bearer_token, api_key, basic_auth.
hint String! Masked preview of the secret, e.g. ••••ab12.
createdAt String! —
updatedAt String! —

Input object. Secret fields for a credential. Supply only the fields for the chosen type: bearer_token → token; api_key → header + value; basic_auth → username + password.

Field Type Description
token String —
header String —
value String —
username String —
password String —

Scalar. The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Object.

Field Type Description
name String! —
value String! —

Input object.

Field Type Description
name String! —
value String! —

Scalar. The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Object. A connection to an external MCP (Model Context Protocol) server.

Field Type Description
uuid ID! —
name String! —
slug String! —
description String —
transport String! Transport: streamable_http or sse.
url String! —
enabled Boolean! —
status String! One of: unknown, connected, error.
statusDetail String —
credentialUuid ID —
credentialName String —
auth ConnectionAuth! How requests authenticate (secrets are never returned).
toolCount Int! —
tools [IntegrationTool!]! —
lastCheckedAt String —
createdAt String! —
updatedAt String! —

Object. A tool discovered from an MCP integration.

Field Type Description
key String! Grantable capability key (mcp.<slug>.<tool>).
name String! —
description String! —
readOnly Boolean! Per the server’s readOnlyHint annotation; false = may change state.

Scalar. agentworkforce — persistent autonomous multi-agent workforces. A supervisor agent decomposes goals into tasks for budgeted, schedulable subagents that work across the suite and the outside world. All operations are scoped to the caller’s organization.

Object.

Field Type Description
provider String! —
model String! —
label String! —

Object.

Field Type Description
hasNextPage Boolean! —
endCursor String —

Object.

Field Type Description
url String! Mercure hub SSE URL.
token String! Subscriber JWT (pass as the authorization query parameter).
topics [String!]! —

Input object.

Field Type Description
uuid ID Omit to create; pass to update.
workforceUuid ID Required on create.
parentUuid ID Optional parent agent (create a subagent of another agent).
role String —
displayName String —
color String —
systemPrompt String —
modelProvider String —
modelName String —
permissions JSON Structured access grants (see Agent.permissions). Replaces allowedTools.
allowedTools [String!] Deprecated: legacy flat tool keys, converted into permissions.
budgetTotalMinor Int —
budgetCurrency String —
dailyTokenCap Int —
positionX Float —
positionY Float —

Input object.

Field Type Description
uuid ID Omit to create.
name String! —
description String —
baseUrl String! —
extraHosts [String!] —
headers [HeaderInput!] —
auth ConnectionAuthInput —
actions JSON List of actions: {key?, name, description, method, path, bodyMode, contentType, body, variables: [{name, type, description, required}]}.
enabled Boolean —

Input object.

Field Type Description
kind String! none | interval | cron
intervalMinutes Int —
cronExpression String —

Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Object.

Field Type Description
key String! —
description String! —
external Boolean! Tools that leave the suite (http.*).
mutation Boolean! Tools that change state.
inputSchema JSON! —
integration String Name of the MCP integration this tool comes from, or null for built-ins.

Object.

Field Type Description
uuid ID! —
taskUuid ID! —
agentUuid ID —
toolKey String! —
input JSON! Credential-ish keys are redacted before persisting.
output String —
status String! pending_approval | denied | succeeded | failed
durationMs Int —
requiresApproval Boolean! —
approvalNote String Why this call paused for review (e.g. a possible data-exfiltration warning).
decidedBy ID —
decidedAt String —
createdAt String! —

Object.

Field Type Description
edges [ToolInvocationEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node ToolInvocation! —

Input object.

Field Type Description
name String —
description String —
type String —
secret CredentialSecretInput Omit to leave the stored secret unchanged.

Input object.

Field Type Description
name String —
description String —
transport String —
url String —
auth ConnectionAuthInput Inline authentication; omit secret fields to keep the stored secret.
credentialUuid ID Deprecated: attach a stored credential.
enabled Boolean —

Input object.

Field Type Description
name String —
description String —
standingGoal String —
approvalMode String —
maxSteps Int —
allowedHttpDomains [String!] —
status String active | paused

Object.

Field Type Description
uuid ID! —
name String! —
description String —
standingGoal String Goal used by scheduled sessions.
status String! —
approvalMode String! auto | external_only | all — which tool calls pause for human approval.
maxSteps Int! Max supervisor turns per session.
allowedHttpDomains [String!]! Deprecated (retired http.request): legacy agents get read-only web access on these domains.
scheduleKind String! —
intervalMinutes Int —
cronExpression String —
nextWakeAt String —
agents [Agent!]! —
createdAt String! —
updatedAt String! —

Object.

Field Type Description
edges [WorkforceEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Workforce! —

Input object.

Field Type Description
search String —
includeArchived Boolean —

Object.

Field Type Description
uuid ID! —
workforceUuid ID! —
triggerKind String! manual | schedule | message
goal String! —
status String! queued | running | waiting_approval | succeeded | failed | cancelled
stepsUsed Int! —
tokensIn Int! —
tokensOut Int! —
costMinor Int! —
outcome String —
tasks [WorkTask!]! —
startedAt String —
endedAt String —
createdAt String! —

Object.

Field Type Description
edges [WorkSessionEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node WorkSession! —

Object.

Field Type Description
uuid ID! —
agentUuid ID! —
sessionUuid ID! —
markdown String! —
driveUrl String —
createdAt String! —

Object.

Field Type Description
uuid ID! —
sessionUuid ID! —
agentUuid ID —
parentUuid ID —
title String! —
instructions String! —
result String —
status String! pending | in_progress | needs_approval | done | failed | skipped
iterations Int! —
createdAt String! —
updatedAt String! —

Object.

Field Type Description
edges [WorkTaskEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node WorkTask! —