Set sleep after
set_sleep_afterSet how long a spawnpoint app stays awake after its last visit before it sleeps. An app on a machine (node, python, docker) sleeps when nobody visits for an hour by default, and the next visitor waits about half a minute while it starts. Pass minutes: a longer window keeps an app that is used in bursts awake between them; a shorter one lets a rarely used app sleep sooner; 0 goes back to the default. The plan sets the longest window, and a refusal says what it allows. To keep an app awake around the clock, use set_always_on instead. A static site never sleeps and has no window. get_project shows the window in use as sleep_after_minutes.
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": {
"project_id": "<project_id>",
"minutes": "<minutes>"
},
"name": "set_sleep_after"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minutes | Yes | how many minutes with no visits before the app sleeps, at least 5; 0 goes back to the default | |
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| project_id | Yes | ||
| sleep_after_minutes | Yes |