Create server
create_serverProvision a sized server box. Servers hold projects; each project gets a stable URL that serves once you make it public. One server holds several projects, so check list_servers for one with room before creating another. Pass secrets to set server-wide env vars (shared by every project on the server); values are write-only. Pass kind: "browser" for a box with a screen and a browser on it. Returns the server id. A new server takes about a minute to start: poll get_server until provisioning reads ready before writing files or starting apps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What kind of box. standard is a headless server, the default. browser adds a screen with Chrome on it, so a run can use sites that need a real browser: take a screenshot with `s4a-computer screenshot`, then click and type with `s4a-computer`. A browser box costs more to run and needs a plan that allows the medium tier. | |
| task | No | Short nickname for the server. | |
| tier | No | Size tier. small=3 projects/5 GB, medium=10 projects/20 GB, large=unlimited projects/100 GB. Available tiers depend on your plan. Defaults to small. | |
| region | No | Where the box runs. Defaults to us-east. | |
| secrets | No | Server-wide env vars to set and bind. Values are write-only. | |
| project_sharing | No | What an agent run in one of this server's projects may do with the others on it. isolated = runs are not told the other projects exist. read = runs may read them for reference and are told not to change them. shared = runs may work across projects. Defaults to read. Guidance for runs, not a hard boundary: projects on a server share one machine. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The new server's id. | |
| url | No | The server's own address, when it has one. | |
| kind | No | standard = headless. browser = a box with a screen and a browser on it. | |
| tier | No | Size tier. | |
| status | No | Lifecycle status. A new box takes a minute or two to become ready. | |
| project_sharing | No | What a run in one project may do with the others. |