Create or edit an agent
agents_saveCreate an agent (no id) or edit one (with id). Setting autoPublishPosts arms publishing without human approval and needs the publish scope; everything else needs write.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agents_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The agent id to edit; omit to create. | |
| name | No | Name, up to 60 characters. | |
| feeds | No | Up to 5 RSS or Atom URLs: each wake reads what they published since the last one and proposes a post per item worth posting (waiting for approval unless autoPublishPosts). An agent with feeds wakes only when one has something new. | |
| prompt | No | The standing brief, up to 4000 characters. | |
| status | No | ||
| planDays | No | Wake days, 0=Sunday. | |
| timezone | No | IANA timezone. | |
| planHours | No | Wake hours. | |
| subreddits | No | Up to 5 subreddits. | |
| connectionIds | No | Accounts to post through; null means all. | |
| idempotencyKey | No | On a create: Any string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first call made, with replayed: true, and makes nothing new. Derive it from the thing, not the attempt, so every agent and every restarted run that means the same one sends the same key. | |
| monthlyCapCents | No | Monthly spend cap in cents; null = no cap. The studio shows it in credits. | |
| autoPublishPosts | No | DANGEROUS: publish with no human approval. Needs the publish scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | Yes |