Reference
builds
Builds of a repository ref or an uploaded tarball: probed in a sandbox, planned with a preset, built on a build machine. Index · shared schemas · errors.
| Procedure | Summary | REST | MCP tool | Stability |
|---|---|---|---|---|
builds.create | Start a build of a git ref (or of a tarball uploaded next): probe, plan with a preset, build in a sandbox, store the artifacts | POST | — | experimental |
builds.get | A build: its status, the probed revision, the plan it chose (preset, image digest) and its artifacts | GET | — | experimental |
builds.list | A project's builds, newest first | GET | — | experimental |
builds.cancel | Cancel a build: an unfinished one ends canceled and its machine is stopped; a finished one is returned as is | POST | — | experimental |
builds.logs | Replay a build's log from since, then follow it until the build ends | GET | — | experimental |
builds.create
Start a build of a git ref (or of a tarball uploaded next): probe, plan with a preset, build in a sandbox, store the artifacts
| REST | POST /v1/builds/create (input as a JSON body) |
| RPC | /rpc/v2/builds/create |
| MCP | not a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: none |
| Auth | builds:write |
| Tenancy | project |
| Troupe Cloud | answered by the control plane |
| Stability | experimental, since 1.0 |
Input:
{
projectId: ProjectId
source: BuildSourceInput
appRoot?: RelativePath
osFamily: BuildOsFamilyIn
target: BuildTargetIn
configuration?: BuildConfigurationIn
preset?: PresetId
presetOptions?: PresetOptions
stepOverrides?: StepOverride[] // ≤ 16 items
cache?: BuildCacheOptions
trigger?: BuildTrigger
timeoutMs?: integer // 60000–10800000
signing?: CredentialId | 'none'
env?: BuildEnvValues
}Output:
{ build: CloudBuild; upload?: CloudUpload }Errors: U, NOT_FOUND, ORG_SUSPENDED, PROJECT_SUSPENDED, QUOTA_EXCEEDED, CAPACITY_UNAVAILABLE.
Named types: BuildCacheOptions, BuildConfigurationIn, BuildEnvValues, BuildOsFamilyIn, BuildSourceInput, BuildTargetIn, BuildTrigger, CloudBuild, CloudUpload, CredentialId, PresetId, PresetOptions, ProjectId, RelativePath, StepOverride.
builds.get
A build: its status, the probed revision, the plan it chose (preset, image digest) and its artifacts
| REST | GET /v1/builds/get (input as query parameters) |
| RPC | /rpc/v2/builds/get |
| MCP | not a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent |
| Auth | builds:read |
| Tenancy | project |
| Troupe Cloud | answered by the control plane |
| Stability | experimental, since 1.0 |
Input:
{ projectId: ProjectId; buildId: BuildId }Output:
{ build: CloudBuild }Named types: BuildId, CloudBuild, ProjectId.
builds.list
A project's builds, newest first
| REST | GET /v1/builds/list (input as query parameters) |
| RPC | /rpc/v2/builds/list |
| MCP | not a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent |
| Auth | builds:read |
| Tenancy | project |
| Troupe Cloud | answered by the control plane |
| Stability | experimental, since 1.0 |
Input:
{ projectId: ProjectId; limit?: PageLimit; cursor?: PageCursor }Output:
{ builds: CloudBuild[]; nextCursor?: string }Named types: CloudBuild, PageCursor, PageLimit, ProjectId.
builds.cancel
Cancel a build: an unfinished one ends canceled and its machine is stopped; a finished one is returned as is
| REST | POST /v1/builds/cancel (input as a JSON body) |
| RPC | /rpc/v2/builds/cancel |
| MCP | not a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: idempotent, destructive |
| Auth | builds:write |
| Tenancy | project |
| Troupe Cloud | answered by the control plane |
| Stability | experimental, since 1.0 |
Input:
{ projectId: ProjectId; buildId: BuildId }Output:
{ build: CloudBuild }Errors: U, NOT_FOUND, CONFLICT.
Named types: BuildId, CloudBuild, ProjectId.
builds.logs
Replay a build's log from since, then follow it until the build ends
| REST | GET /v1/builds/logs (input as query parameters) |
| RPC | /rpc/v2/builds/logs |
| MCP | not a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent |
| Auth | builds:read |
| Tenancy | project |
| Troupe Cloud | answered by the control plane |
| Stability | experimental, since 1.0 |
Input:
{ projectId: ProjectId; buildId: BuildId; since?: Seq; follow?: boolean }Output: an event iterator (text/event-stream on REST), each event:
BuildLogLineNamed types: BuildId, BuildLogLine, ProjectId, Seq.