import_agent
Import an agent from a template produced by export_agent / the OpenAPI export-template route. The template shape is complex; do not invent it manually unless the user provides an exact exported object.
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": {
"agentTemplate": "<agentTemplate>",
"agentName": "<agentName>"
},
"name": "import_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentName | Yes | Name for the imported agent | |
| fromAgentId | No | Optional source agent ID to preserve import lineage/context when the backend supports it. | |
| agentTemplate | Yes | Agent template object from export_agent / export-template. Pass the exported template object through; do not manually invent nested template fields. |