agents_create
Creates a new agent with a unique key, role, instructions, and model, plus optional tools, memory stores, and knowledge bases.
Instructions
Create a new agent
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>",
"role": "<role>",
"description": "<description>",
"instructions": "<instructions>",
"model": "<model>"
},
"name": "agents_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Unique agent key | |
| path | No | Project path | Example |
| role | Yes | Agent role | |
| model | Yes | Model ID, e.g. openai/gpt-4o | |
| tools_json | No | JSON array of tools | |
| description | Yes | Description | |
| display_name | No | Display name | |
| instructions | Yes | Instructions | |
| system_prompt | No | Custom system prompt | |
| max_iterations | No | Max iterations | |
| model_temperature | No | Temperature (0-2) | |
| max_execution_time | No | Max execution time | |
| memory_stores_json | No | JSON array of store keys | |
| team_of_agents_json | No | JSON array: [{key:...,role:...}] | |
| knowledge_bases_json | No | JSON array: [{knowledge_id:...}] |