Configure an agent
Manage immutable agent revisions, configure tool permissions and LLM risk review, attach subagents, enable context compaction, and bind plugins in Service.
Configure capabilities on an agent draft in Console (or Agent Composer), validate and publish a numbered revision (POST /api/v1/agents/{agent_id}/revisions), and test it before promoting it to default.
Agent configuration
| Capability | Agent config fields | Guide |
|---|---|---|
| Model & instructions | model, instructions, model_settings, model_characteristics | Models |
| Tools & connections | toolsets, connection_tools, tool_search | Tools and connections |
| Skills | skills: [{skill_id, revision_id}] | Skills |
| Client tools & questions | client_tools, user_questions | Client tools and questions |
| Delegation | subagents | Subagents |
| Review & media fallbacks | reviewer, media_understanding | Media understanding |
| Output contract & retries | output_spec (JSON Schema, variants, or alternatives), retries: {tools, output} | Execution options |
| Default environment | default_environment_template_id or default_environment_id, lazy_environment | Environments |
| Memory & compaction | memory, memory_mounts, background_compaction | Memory, Compaction |
| Runtime plugins | plugins | Configure plugins |
Tool permissions
Set allow, ask, review, deny, or inherit on toolsets.<toolset>.tools.<tool>.permission and connection_tools[].permission (with per-tool permissions overrides):
ask: Pauses the run aswaiting(pending.approvals).review: Evaluates risk (low..extra_high) with the configuredreviewermodel and applies your threshold policy (deny or ask a human; defaults denyextra_highand ask on review error).
In the Agent configuration JSON, set respect_mcp_annotations: true to use MCP server hints for tools with inherit permission. Tools marked readOnlyHint: true run without approval; other tools marked destructiveHint: true request approval. Tools without either hint keep their source defaults. The option defaults to false; explicit permissions always take precedence.
Client tools and questions
Declare application-executed tools in client_tools and enable user_questions: true for ask_user_question:
{
"user_questions": true,
"client_tools": [{
"name": "open_ticket",
"description": "Open a support ticket in the customer's CRM.",
"parameters_json_schema": {
"type": "object",
"properties": {"title": {"type": "string"}},
"required": ["title"]
}
}]
}Both pause the run in pending.calls; execute or answer them in your app and resume the waiting run.
Subagents
Attach workspace agents as async (default—creates child threads in the same session using async delegation tools) or inline subagents, and optionally enable on-demand spawn_subagent:
{
"subagents": {
"mode": "async",
"named": {
"researcher": {
"agent_id": "ap_...",
"description": "Finds and summarizes sources.",
"usage_limits": {"request_limit": 20},
"environment": {"mode": "shared"}
}
},
"dynamic": {"enabled": true}
}
}Async edges set environment.mode to "shared", "dedicated" (with template_id), or "none".
Context compaction
Synchronous compaction is enabled by default alongside automatic overflow recovery. Enable non-blocking background summarization under Advanced → Context compaction:
{"background_compaction": {"enabled": true, "blocking_threshold": 0.95}}Configure Plugins in Console
Under Capabilities → Plugins → Add plugin, select any plugin factory enabled by the operator in plugins.keys (GET /api/v1/plugins), give the instance a unique name, configure its settings, and save the revision.
Reuse media between tools
Enable the thread-scoped private object library ({"toolsets": {"object_store": {"enabled": true}}}) so screenshots and binary tool outputs receive a13n-object://obj_... references (asset_ref, asset_store, asset_list, asset_info, asset_delete) and can pass directly into opted-in base64 MCP tools (config.object_ref_tools) via Object Reference Transport without round-tripping base64 through model tokens.