create_agent
Compose local Genes into a new Agent saved to .rotifer/agents/. Genes must exist locally; wrap them first with wrap_gene.
Instructions
Create a new Agent by composing one or more local Genes. The Agent is saved to .rotifer/agents/ in the project. Genes must exist locally (wrap them first with wrap_gene).
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": {
"agent_name": "<agent_name>",
"gene_ids": "<gene_ids>"
},
"name": "create_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Domain tag for the agent (e.g. search.web). Metadata only, does not auto-select genes. | |
| gene_ids | Yes | Array of local gene names to compose (at least one required) | |
| strategy | No | Gene selection strategy (default: greedy) | |
| par_merge | No | Merge strategy for Par composition (default: first) | |
| agent_name | Yes | Agent name | |
| composition | No | Composition strategy (default: Seq for multi-gene, Single for one gene) | |
| project_root | No | Project root path (defaults to cwd) |