Internal platform-tool reference
Reference for how Service agents execute platform management tools under delegated caller authority and versioned configuration deltas.
Use this reference when configuring Agent Composer or your own platform tools. To connect an external client, use management MCP.
Internal agent tools
Service-managed agents use a separate internal platform-tool catalog. The Host supplies its Run credential to /api/v1/platform-tools/; external workspace keys use the management connection described below. Internal tools take direct task fields and versioned deltas, return business results, and never fall back to raw API tools. For example, changing an agent model submits agent_id, the observed expected_version and model; the Service preserves other configuration. Schedule tools construct invocation from task instructions and execution choices. Connection secrets remain in trusted configuration or authorization flows. Internal Run credentials cannot use external management MCP or raw product HTTP as a bypass.
For older saved agents, follow the platform-tool cutover before upgrading.
For Agent configuration deltas, naming base_revision_id also requires an explicit make_default; omission returns invalid_argument. Missing required versions fail validation and stale versions return precondition_failed. On a version conflict, reread the current configuration and submit a freshly reviewed delta.
External clients use management MCP, with HTTP envelopes and request_body arguments.
Usage, Webhooks and environment credentials
The usage toolset exposes nine existing query operations, with workspace read access and admin checks for member attribution. The subscriptions toolset exposes three reads and three reviewed nonsecret writes; all require admin within the accepted Run authority. The egress_credentials toolset exposes only four metadata/application reads. They are opt-in for ordinary Agents and enabled in the current Composer definition.
Composer's native configure_webhook and configure_egress_credential client tools pause the Run for private Console forms. The current user executes writes through existing HTTP APIs; keys and tokens never enter tool arguments or results. Credential writes remain excluded from both internal and external MCP. Read Composer for the user flow, version conflicts and asynchronous application semantics.
Manage independent conversations
Enable execution_control for create_thread, send_thread_message and interrupt_run. The group is disabled by default, including in Composer, and its writes default to review. Enable execution for progress and result queries, and select the platform-operations built-in skill for the workflow guidance. Calls require current workspace run permission within the calling run's captured authority.
{
"toolsets": {
"execution": { "enabled": true },
"execution_control": { "enabled": true }
},
"builtin_skills": ["platform-operations"]
}Create work with create_thread(agent_id="agent_...", message="Investigate the failed deployment", idempotency_key="investigation-1"). An optional agent_revision_id selects an exact revision. Omit session_id to create a session with optional title and labels; provide session_id to add a thread to an existing session. New-session metadata cannot accompany an existing session ID. Optional environments takes the normal initial mounts; otherwise the selected agent's environment defaults apply.
The receipt returns session_id, thread_id, entry_id, entry_status, run_id and run_status. It confirms submission. A null run ID means the entry remains queued. Follow the entry with get_inbox_entry, inspect current and latest run IDs with get_thread, then use get_run and list_run_items to follow execution. Read selected output through read_content references.
| Tool | Behavior |
|---|---|
create_thread | Creates an independent thread and submits its first text message. |
send_thread_message | Takes thread_id, agent/revision, text and an idempotency key. delivery="steer" may join a compatible active run; next_run queues for later execution. |
interrupt_run | Takes run_id. Cancels accepted work immediately or requests running work to stop at a safe boundary. Query the run to confirm cancellation. |
Preserve the original idempotency key and all arguments when retrying a creation or message submission after an unknown outcome. A changed request with the same key returns idempotency_key_reused. Exact replay returns the same entry with its current assignment and state, subject to current permission. Interruption can be repeated; completed, failed and waiting outcomes conflict.
Independent threads have no subagent parent or automatic result delivery. They do not copy the caller's history, MCP headers or bot identity. Use configured subagents for parent-child delegation. Sending a message does not resolve a waiting run, and cancellation stops automatic queue advancement until an explicit action continues the thread. Interruption does not archive the thread or establish a bot-specific persistent pause. Bot-specific session mapping and pause controls stay with the bot.
Connect an existing environment
Enable the environments toolset to offer list_connectable_environments and connect_environment. The tools use the current Run's delegated authority and do not expose credentials. Discovery returns existing usable instances and configured operations; it does not start them or verify readiness.
Connect with an environment ID and a new alias, for example connect_environment(environment_id="env_...", alias="dev"). This adds a named mount to the current Run. To also save it for later ordinary Runs, set persist_to_thread=true and supply the Thread's observed expected_version from get_thread. A stale version or alias conflict rejects both writes. Existing mounts and the default environment are preserved.
The new alias becomes available only at the next root model request, after the current tool batch finishes. Do not use it in the same batch, including sequential orchestration. On the next model turn, check the current environment context before calling Shell, Files or Computer tools against that alias. No additional user message is required. Acceptance is not remote readiness: first use may still prepare the environment or report an unavailable target. Agent tool settings and environment permissions continue to apply.
Read thread defaults through get_thread.environment_mounts, returned consistently with the thread version. Read a run's accepted mounts through get_run and read_content on content.environment_mounts; run-only additions are absent from thread defaults. Neither query is a live connection check. Recovery retains accepted additions; already-started background operations retain their original environment scope.
Upgrade all Controls and Workers and apply the database guard migration before enabling this toolset. Older Workers cannot apply live additions, even though they can read the mount records.