Deploy local workspace
workspaces.deployCoordinate a resumable local-workspace deployment. Until local Git prerequisites are complete, return one structured client_action_required next_action for the LLM caller to perform. Once the exact commit is pushed to the configured Resilis Git repository, verify the remote branch head and start an idempotent deployment without reading or modifying the local workspace.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"branch": "main",
"template": "web-service",
"project_id": "project-id",
"client_state": {},
"resource_type": "service",
"environment_id": "environment-id",
"idempotency_key": "workspace-tanda-api-staging-v1"
},
"name": "workspaces.deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | app display name; defaults to the hosted repository name | |
| branch | No | target stable branch; defaults to main | |
| replicas | No | stable replica count; defaults to 1 | |
| template | Yes | web-service or static-site, determined by inspecting the local workspace | |
| cpu_limit | No | Kubernetes CPU quantity such as 500m | |
| build_args | No | Docker build arguments; values are treated as sensitive in returned deployment data | |
| project_id | No | project in the selected organization; omit only when the organization has one project | |
| static_spa | No | enable conservative single-page-app fallback for extensionless routes | |
| technology | No | framework or runtime detected from the local workspace | |
| clone_token | No | first-time repository-scoped read and clone token; encrypted server-side, excluded from replay records, and never returned | |
| description | No | optional app description | |
| region_code | No | target region; omit for plan-aware recommendation | |
| target_port | No | explicit container port from 1 to 65535; omit for runtime discovery | |
| client_state | Yes | caller-reported local workspace state; omit unknown fields and execute the returned next_action locally | |
| memory_limit | No | Kubernetes memory quantity such as 512Mi | |
| runtime_mode | No | container or shared; shared is opt-in for paid plans and the default for eligible free-plan apps | |
| build_command | No | optional build command override | |
| health_checks | No | optional HTTP health probes; target_port is required | |
| resource_type | Yes | service, web_application, static_website, or function, determined by inspecting the local workspace | |
| start_command | No | optional start command override | |
| webhook_token | No | first-time separate repository-scoped webhook administration token; encrypted server-side, excluded from replay records, and never returned | |
| workload_path | No | directory inside a monorepo; defaults to repository root | |
| build_strategy | No | railpack or dockerfile; omitted values default to railpack | |
| clone_username | No | Forgejo username for first-time repository onboarding; accepted only with both repository-scoped tokens | |
| environment_id | Yes | target environment identifier belonging to the project | |
| repository_url | No | optional expected repository URL; managed WalGit derives the canonical organization/project URL server-side and rejects a different value | |
| dockerfile_path | No | Dockerfile path relative to workload_path | |
| idempotency_key | Yes | unique caller-generated key reserved for the final deployment; reuse it while completing this workflow | |
| install_command | No | optional dependency installation command override | |
| organization_id | No | organization membership to use for this call; omit only when the account has one current membership | |
| previews_enabled | No | create previews for pull requests targeting this stable branch after repository onboarding | |
| preferred_regions | No | ordered preferred region codes | |
| deployment_strategy | No | single-region or multi-region | |
| sensitive_variables | No | environment variable keys whose values must be encrypted and redacted | |
| environment_variables | No | runtime environment variables | |
| static_output_directory | No | optional compatibility override for the static-site build output directory relative to workload_path; omit for automatic detection | |
| inherit_environment_variables | No | also inherit environment variables and secrets from the configuration source | |
| configuration_source_instance_id | No | existing app instance whose stable configuration should be inherited |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes |