AgentDefinition
A Custom Agent definition: a saved, team-owned agent configuration that a task can be run as. Its role, integrations, and instructions are applied to every task run as the agent.
Properties
idstring requiredThe unique identifier of the agent definition.namestring requiredThe agent’s name: lower-case letters, digits and hyphens, unique within the organization. This is the stable handle a person writes down – in an automation, in a CLI invocation – and it may be changed, because everything that references an agent internally references it by id.displayNamestring requiredThe human-readable label shown wherever the agent is displayed. Falls back to the name when the agent has none.roleIdstring optionalThe RBAC role id the agent’s tasks assume, identified by role id. Null means no assumed role: tasks run with the invoking user’s own permissions.permissionModeenum optionalDeprecated. Custom Agent authority is controlled by roleId.Values:default— Defaultread-only— ReadOnly
customInstructionsstring optionalInstructions that shape how the agent behaves in the team’s environment.- The integrations enabled for the agent’s tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- ↳
idstring requiredThe catalog integration ID (e.g. ‘honeycomb’, ‘datadog’). purposestring optionalA one-line description of what this agent is for, shown under its name in the roster.avatarstring optionalA presentation token the console maps to an icon. Not an uploaded asset.approvalModeenum optionalThe approval posture the agent’s runs inherit. When omitted, runs are auto-approved, matching scheduled automations.Values:manual,auto,balancedpausedAtstring optionalWhen the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source – console, schedule, or trigger – until it is resumed; runs already in flight continue.pausedBystring optionalWho paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.pausedReasonstring optionalWhy the agent was paused. Null when it is not paused, or when no reason was given.- Run counts for this agent, shown on its roster card.
- ↳
totalinteger requiredHow many runs this agent has started in total. - ↳
runninginteger requiredHow many of this agent’s runs are currently running.