Skip to main content
Create agents, start conversations, and retrieve artifacts — all via JSON-RPC 2.0 through the agent-management MCP server.

Overview

The agent management tools let you build applications that:
  • Create and configure agents with custom instructions and tool access
  • Have conversations with agents across multiple messages
  • Manage chat sessions — list, create, and reset conversations
  • Retrieve artifacts — list files created by agents during code execution
A typical flow:
  1. Create an agent with agent_create (or use an existing one via agent_list). To give an agent tool access, pass the servers parameter with MCP server names and tool names — use capabilities_discover to find valid values.
  2. Invoke the agent with agent_invoke — this starts a conversation and returns a chatId
  3. Continue the conversation by calling agent_invoke again with the same chatId
  4. List artifacts created during the conversation with chat_list_artifacts
For full tool parameters and schemas, see the agent-management server reference.

Authentication

All calls require a runtime token. See Authentication for how to exchange your API key.

Quick Start

Create an agent

Start a conversation

Response:

Continue the conversation

Pass the chatId from the previous response to continue with message history:

Available Tools

See the full server reference for parameters, schemas, and response formats for each tool.