Prompt the on-server agent
promptSend a freeform prompt to the on-server agent. It plans, writes code, runs commands, and ships whatever the prompt asks for. It spends the account's AI budget, so use it when the user asks for the on-server agent or to continue a run it started; to build something yourself, write_file, exec, start_app and deploy cost nothing. Returns a run_id to poll with get_run. Each call starts a new conversation unless you pass follow_up_of: the run_id of an earlier run to continue, so the agent remembers what it did there. Use it to answer a run that is awaiting_input, or to ask for changes to what a run built. Pass project_id to work inside one project's workspace, or omit it to work across the whole server workspace (e.g. scaffolding a new project).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What you want the agent to do, in plain language. The more specific, the better the result. | |
| server_id | Yes | The server's id, as returned by create_server or list_servers. | |
| project_id | No | Optional. Scope the run to this project's workspace folder. Omit to run at the server workspace root. Not needed with follow_up_of, which runs where the earlier run did. | |
| follow_up_of | No | Optional. The run_id of an earlier run on this server to continue. The agent picks up that conversation, in the same folder and project. The result's resumed is false when there was no conversation left to pick up: the agent then works in the same folder without that memory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run. Poll it with get_run. | |
| status | Yes | Run status. | |
| resumed | No | Whether the earlier conversation was picked up. false means the same folder, without that memory. | |
| project_id | No | The project whose folder it works in. null at the server root. | |
| follow_up_of | No | The earlier run this one continues, when follow_up_of was passed. |