Get project logs
get_project_logsFetch a spawnpoint project's logs to diagnose a failed deploy or a misbehaving app. To learn whether the app is getting errors, how many, and on which paths, call get_project first: its activity block counts them. kind=push (the default) returns the last deploy's combined output: upload, dependency install, and start. Read it first when a deploy errors; a pip or npm failure prints its actual cause there. kind=runtime fetches the last 200 lines of the app's own journal live from the machine (takes a few seconds; works only while the machine exists; limited per account to a burst of 10, then one every 6 seconds, so read it once per fix rather than polling). kind=history reads what the app printed in a window (since, until; at most 24 hours, default the last hour), kept for days even after a crash, a restart, or a new machine, optionally only lines containing query; use it for questions about the past, such as what the app logged yesterday or before it went down. kind=runs lists the last 20 scheduled runs (set_schedule) with each one's status, HTTP status, and what the app answered. Fix what the log shows and redeploy under the same name.
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>"
},
"name": "get_project_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | which log: push (the last deploy's upload/install/start output; default), runtime (the app's journal tail, fetched live from the machine), history (what the app printed in a time window, kept even after a restart or a new machine), or runs (the last scheduled runs and what the app answered) | |
| query | No | kind history only: keep only lines containing this text (plain text, any case) | |
| since | No | kind history only: where the window starts, RFC 3339 (2026-11-10T03:00:00Z) or a duration back from now (1h, 24h); default 1h ago | |
| until | No | kind history only: where the window ends, the same forms; default now. A window is at most 24 hours | |
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | ||
| kind | Yes | ||
| more | No | ||
| note | No | ||
| runs | No | ||
| next_until | No |