Preview the final agent shape with capabilities applied
POST /v1/agents/preview
Returns the merged system prompt and all tools that would be available to the agent. This is useful for previewing what the agent will look like before saving.
Request Body required
Section titled “Request Body required ”Request to preview the final agent shape with capabilities applied
object
Capabilities to apply with per-agent configuration.
Per-agent capability configuration
Associates a capability with an agent, including optional per-agent configuration. The config field allows the same capability to behave differently per-agent.
object
Per-agent configuration for this capability (capability-specific)
Reference to the capability ID
Example
[ { "config": {}, "ref": "current_time" }, { "config": {}, "ref": "test_math" }]The base system prompt (before capability additions)
Example
You are a helpful customer support agent.Responses
Section titled “ Responses ”Agent preview generated
Response showing the final agent shape after applying capabilities
object
The full system prompt with capability additions prepended
All tool definitions from capabilities
object
Internal server error
Standard error response for API endpoints.
object
Error message describing what went wrong.