Agent Workforce types
Type definitions referenced by Agent Workforce queries and mutations.
AccessApp
Section titled “AccessApp”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!]! |
— |
AccessCatalog
Section titled “AccessCatalog”Object.
| Field | Type | Description |
|---|---|---|
apps |
[AccessApp!]! |
— |
connections |
[ApiConnection!]! |
— |
mcpServers |
[AccessMcpServer!]! |
— |
AccessMcpServer
Section titled “AccessMcpServer”Object.
| Field | Type | Description |
|---|---|---|
slug |
String! |
— |
name |
String! |
— |
url |
String! |
— |
status |
String! |
— |
enabled |
Boolean! |
— |
tools |
[AccessMcpTool!]! |
— |
AccessMcpTool
Section titled “AccessMcpTool”Object.
| Field | Type | Description |
|---|---|---|
key |
String! |
— |
name |
String! |
— |
description |
String! |
— |
readOnly |
Boolean! |
— |
AccessTool
Section titled “AccessTool”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! |
— |
AgentMessage
Section titled “AgentMessage”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! |
— |
AgentMessageConnection
Section titled “AgentMessageConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[AgentMessageEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
AgentMessageEdge
Section titled “AgentMessageEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
AgentMessage! |
— |
AgentQuestion
Section titled “AgentQuestion”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 |
— |
AgentUsageDay
Section titled “AgentUsageDay”Object.
| Field | Type | Description |
|---|---|---|
day |
String! |
— |
tokensIn |
Int! |
— |
tokensOut |
Int! |
— |
costMinor |
Int! |
— |
llmCalls |
Int! |
— |
ApiAction
Section titled “ApiAction”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!]! |
— |
ApiActionVariable
Section titled “ApiActionVariable”Object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
type |
String! |
string | number | integer | boolean |
description |
String! |
— |
required |
Boolean! |
— |
ApiConnection
Section titled “ApiConnection”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! |
— |
Boolean
Section titled “Boolean”Scalar. The Boolean scalar type represents true or false.
ConnectionAuth
Section titled “ConnectionAuth”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. |
ConnectionAuthInput
Section titled “ConnectionAuthInput”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 |
— |
CreateCredentialInput
Section titled “CreateCredentialInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
description |
String |
— |
type |
String! |
— |
secret |
CredentialSecretInput! |
— |
CreateIntegrationInput
Section titled “CreateIntegrationInput”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 |
— |
CreateWorkforceInput
Section titled “CreateWorkforceInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
description |
String |
— |
standingGoal |
String |
— |
approvalMode |
String |
— |
maxSteps |
Int |
— |
allowedHttpDomains |
[String!] |
— |
Credential
Section titled “Credential”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! |
— |
CredentialSecretInput
Section titled “CredentialSecretInput”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.
Header
Section titled “Header”Object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
value |
String! |
— |
HeaderInput
Section titled “HeaderInput”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.
Integration
Section titled “Integration”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! |
— |
IntegrationTool
Section titled “IntegrationTool”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.
ModelDescriptor
Section titled “ModelDescriptor”Object.
| Field | Type | Description |
|---|---|---|
provider |
String! |
— |
model |
String! |
— |
label |
String! |
— |
PageInfo
Section titled “PageInfo”Object.
| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
— |
endCursor |
String |
— |
RealtimeGrant
Section titled “RealtimeGrant”Object.
| Field | Type | Description |
|---|---|---|
url |
String! |
Mercure hub SSE URL. |
token |
String! |
Subscriber JWT (pass as the authorization query parameter). |
topics |
[String!]! |
— |
SaveAgentInput
Section titled “SaveAgentInput”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 |
— |
SaveApiConnectionInput
Section titled “SaveApiConnectionInput”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 |
— |
ScheduleInput
Section titled “ScheduleInput”Input object.
| Field | Type | Description |
|---|---|---|
kind |
String! |
none | interval | cron |
intervalMinutes |
Int |
— |
cronExpression |
String |
— |
String
Section titled “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.
ToolDescriptor
Section titled “ToolDescriptor”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. |
ToolInvocation
Section titled “ToolInvocation”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! |
— |
ToolInvocationConnection
Section titled “ToolInvocationConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[ToolInvocationEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
ToolInvocationEdge
Section titled “ToolInvocationEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
ToolInvocation! |
— |
UpdateCredentialInput
Section titled “UpdateCredentialInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String |
— |
description |
String |
— |
type |
String |
— |
secret |
CredentialSecretInput |
Omit to leave the stored secret unchanged. |
UpdateIntegrationInput
Section titled “UpdateIntegrationInput”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 |
— |
UpdateWorkforceInput
Section titled “UpdateWorkforceInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String |
— |
description |
String |
— |
standingGoal |
String |
— |
approvalMode |
String |
— |
maxSteps |
Int |
— |
allowedHttpDomains |
[String!] |
— |
status |
String |
active | paused |
Workforce
Section titled “Workforce”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! |
— |
WorkforceConnection
Section titled “WorkforceConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[WorkforceEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
WorkforceEdge
Section titled “WorkforceEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Workforce! |
— |
WorkforceFilter
Section titled “WorkforceFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
— |
includeArchived |
Boolean |
— |
WorkSession
Section titled “WorkSession”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! |
— |
WorkSessionConnection
Section titled “WorkSessionConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[WorkSessionEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
WorkSessionEdge
Section titled “WorkSessionEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
WorkSession! |
— |
WorkSummary
Section titled “WorkSummary”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
agentUuid |
ID! |
— |
sessionUuid |
ID! |
— |
markdown |
String! |
— |
driveUrl |
String |
— |
createdAt |
String! |
— |
WorkTask
Section titled “WorkTask”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! |
— |
WorkTaskConnection
Section titled “WorkTaskConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[WorkTaskEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
WorkTaskEdge
Section titled “WorkTaskEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
WorkTask! |
— |