infomaniak_nodejs_app_logs
Fetch live stdout/stderr logs from a Node.js application by obtaining a temporary JWT and SSE endpoint for streaming.
Instructions
Get credentials to consume the LIVE stdout/stderr stream of a Node.js application. Returns a one-shot JWT (valid ~1h) and the endpoint URL on manager-logs-01.hosting-ik.com. The stream itself is Server-Sent Events: consume with curl -N -H 'Authorization: Bearer <jwt>' <endpoint>. To fetch a single snapshot, kill the curl after a few lines. Manager-private.
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": {
"hosting_id": "<hosting_id>",
"vhost_route_id": "<vhost_route_id>"
},
"name": "infomaniak_nodejs_app_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosting_id | Yes | ||
| vhost_route_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | URL of the live log stream — Server-Sent Events on manager-logs-01.hosting-ik.com. | |
| jwt_token | Yes | Short-lived bearer JWT (~1h) — pass as `Authorization: Bearer <token>` when connecting to the endpoint. | |
| consumer_hint | Yes | Suggested consumer: `curl -N -H 'Authorization: Bearer <jwt>' <endpoint>` or an EventSource with a custom header. | |
| expires_at_iso | Yes | ISO timestamp of JWT expiry, decoded from the token's `exp` claim. |