Publish a finite job version
container_job_version_publishPublish one project job from its immutable saved source revision. Supply its build context, Dockerfile, argv and maximum accepted build charge in microcredits. Returns a queued build. Reuse the idempotency key only for this request.
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>",
"environment_id": "<environment_id>",
"idempotency_key": "<idempotency_key>",
"name": "<name>",
"source_revision": "<source_revision>",
"context_path": "<context_path>",
"dockerfile": "<dockerfile>",
"entrypoint": "<entrypoint>",
"max_runtime_seconds": "<max_runtime_seconds>",
"max_build_credit_micros": "<max_build_credit_micros>"
},
"name": "container_job_version_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dockerfile | Yes | Relative path within the selected source revision. | |
| entrypoint | Yes | ||
| project_id | Yes | Project identifier. | |
| context_path | Yes | Relative path within the selected source revision. | |
| environment_id | Yes | Environment identifier. | |
| idempotency_key | Yes | Identifies one mutation and its canonical request payload. | |
| source_revision | Yes | ||
| max_runtime_seconds | Yes | ||
| max_build_credit_micros | Yes | Integer microcredits. One credit equals 1000000 microcredits. |