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

CapabilityAgent config fieldsGuide
Model & instructionsmodel, instructions, model_settings, model_characteristicsModels
Tools & connectionstoolsets, connection_tools, tool_searchTools and connections
Skillsskills: [{skill_id, revision_id}]Skills
Client tools & questionsclient_tools, user_questionsClient tools and questions
DelegationsubagentsSubagents
Review & media fallbacksreviewer, media_understandingMedia understanding
Output contract & retriesoutput_spec (JSON Schema, variants, or alternatives), retries: {tools, output}Execution options
Default environmentdefault_environment_template_id or default_environment_id, lazy_environmentEnvironments
Memory & compactionmemory, memory_mounts, background_compactionMemory, Compaction
Runtime pluginspluginsConfigure 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 as waiting (pending.approvals).
  • review: Evaluates risk (low..extra_high) with the configured reviewer model and applies your threshold policy (deny or ask a human; defaults deny extra_high and 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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{"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.

On this page