Get or create agent
create_agentCreate or reconnect to a persistent cloud agent environment by name, with its own disk, tools, and memory. Use it to accumulate project files, keep repos checked out, or hand off long-running jobs.
Instructions
Get or create an agent by name: a persistent cloud environment running plori's agent, with its own disk, tools, and memory. Create one when the work should accumulate somewhere the user can return to: a project with files that build up, a repo to keep checked out, tools to install once and reuse, or a long job to hand off. You do not need one for a question you can answer yourself or for a one-off script with no state worth keeping. If the account already has an agent with this name, that agent is returned (marked "existing": true) instead of a duplicate — safe to call repeatedly, and the right way to reconnect to an agent you used before. Creation is subject to the account's agent-count limit. The Plori Router chooses the model for each task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The agent's name. Reusing a previous name returns that existing agent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The Agent's unique identifier; pass it to other tools as agent_id. | |
| url | No | This Agent's page in the plori web app. | |
| name | Yes | The Agent's name, chosen by its owner and unique within the account. | |
| model | Yes | The model slug this Agent is configured to use. Empty means no explicit choice, which is not the same as no model — read effective_model for what a run will actually use. | |
| config | Yes | Arbitrary JSON owned by the producing engine. | |
| moving | No | True while this Agent's files are being copied to a new disk; check storage_notice rather than a separate route for the outcome. | |
| status | No | The live warm-session state: warming, ready, or sleeping; empty when no session is active. | |
| backend | Yes | The compute backend this Agent runs on. | |
| user_id | Yes | The identifier of the account that owns this Agent. | |
| deleting | No | True while this Agent's disk is still being erased; offer no action on it besides retrying the deletion itself. | |
| existing | No | Whether create_agent returned an existing same-name agent instead of creating one. | |
| queued_at | No | When a still-warming attach was accepted; present only while it is queued for node capacity. | |
| created_at | Yes | When the Agent was created. | |
| last_run_at | No | When this Agent last started a run; absent when it has never run. | |
| deleting_since | No | When the deletion was first requested; present only while deleting is true. | |
| storage_notice | No | The one sentence, if any, telling the owner about a storage move that stopped; show it verbatim, not paraphrased. | |
| effective_model | Yes | The model a run on this Agent will actually use. plori-auto means the hosted router chooses per turn. | |
| advisor_max_spend_micro_usd | Yes | Optional maximum advisor-completion spend per turn in micro-US-dollars. Zero disables advisor completions; null leaves no spend cap. |