Prepare source upload
source_upload_preparePrepare one complete managed snapshot from uploaded contents. initialize requires unbound source, commit requires the current managed binding and head, and switch requires the current GitHub binding and generation. Returns the upload operation ID. An incomplete upload cannot deploy and preparation starts no deployment.
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>",
"expected_source_generation": "<expected_source_generation>",
"expected_commit_sha": "<expected_commit_sha>",
"message": "<message>",
"idempotency_key": "<idempotency_key>",
"expected_source_connection_id": "<expected_source_connection_id>",
"mode": "<mode>"
},
"name": "source_upload_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| message | Yes | ||
| project_id | Yes | ||
| idempotency_key | Yes | ||
| expected_commit_sha | Yes | ||
| expected_source_generation | Yes | ||
| expected_source_connection_id | Yes |