service_update
Changes the instance size, the repository, branch or directory it builds from, whether pushes that miss that directory skip the build, the image, the schedule of a cron service, or pauses it. Size and pause take effect at once on a running service; source changes take effect on the next deploy. Returns a costed plan, because a bigger instance costs more.
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": {
"productId": "<productId>",
"serviceId": "<serviceId>"
},
"name": "service_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | For a cron that calls a web service: the path to call. | |
| repo | No | Git URL to build from. Use it after a repository is renamed or moved: the clone token is only minted for repositories the Product's GitHub installation lists, so a service still on the old URL stops cloning. Takes effect on the next deploy. | |
| image | No | ||
| branch | No | ||
| method | No | For a cron that calls a web service: the HTTP method. | |
| paused | No | true stops the service and keeps its configuration; false starts it again on its last deployment. | |
| target | No | For a cron that calls a web service: the name of the web service to call. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| instance | No | ||
| schedule | No | Cron expression, for cron services only. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| serviceId | Yes | Service identifier, e.g. svc_... | |
| public_ports | No | Web or worker. Raw TCP to publish, alongside any HTTP a web service serves, on the platform's public address, for protocols the HTTP ingress cannot carry, such as SMTP submission. Only ports 465 and 587 are offered. The process listens on container_port (1024 or above) and clients connect to port. A deploy of a service with public ports stops the old run first, because a host port has one owner, so expect a few seconds of refused connections. | |
| root_directory | No | ||
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. | |
| build_only_on_changes | No | Skip a push-triggered build when the push changed nothing under root_directory. Needs a root_directory. Builds anyway when the push cannot be read, or changes a root lockfile, package.json or Dockerfile. Off by default, because a build uses the whole clone and a service that imports from outside its folder would go stale. Skips are recorded in activity_list and returned by the webhook. |