infomaniak_nodejs_app_action
Manage Node.js applications: start, stop, restart, or build with a two-phase commit that confirms changes before applying them.
Instructions
Start, stop, restart, or build a Node.js application. Two-phase commit: first call returns a plan + token, second call (with the token + same args) applies. stop causes downtime until next start. build triggers a build job and returns its log_stream so you can tail the output. 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>",
"action": "<action>"
},
"name": "infomaniak_nodejs_app_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | `start` — start a Stopped app; `stop` — stop a Running app (causes downtime until next start/restart!); `restart` — gracefully restart the app (a few seconds of downtime); `build` — trigger a build job (runs `build_command` + relaunches the app); returns a `resource_id` + log_stream | |
| hosting_id | Yes | ||
| vhost_route_id | Yes | ||
| confirmation_token | No | Token from the prior plan response. Required on the apply phase. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||