Switch project source
source_switchSeals a prepared GitHub-to-managed upload for the user's explicit source-switch request, using the complete intended manifest and original GitHub connection/generation. Preparation must finish before the same project's binding can switch; conflicts require the current binding. The asynchronous operation reports completion. URLs, data and deployment history remain; GitHub auto-deploy is disabled and earlier generation-bound plans/events are fenced. No replacement deployment starts.
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>",
"upload_operation_id": "<upload_operation_id>",
"expected_source_connection_id": "<expected_source_connection_id>",
"expected_source_generation": "<expected_source_generation>",
"files": "<files>",
"idempotency_key": "<idempotency_key>"
},
"name": "source_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| project_id | Yes | ||
| idempotency_key | Yes | ||
| upload_operation_id | Yes | ||
| expected_source_generation | Yes | ||
| expected_source_connection_id | Yes |