workflow_prepare_delivery_workspace
Prepare a local workspace for delivery by verifying a clean repo, refreshing the base branch, and returning a preparation_key. For local_git, it also creates and checks out a working branch.
Instructions
Use before delivery workflows. Pass the explicit local repo_path for the target project. This tool verifies a clean local repo, refreshes the latest base branch, and returns a preparation_key that workflow_issue_to_delivery/workflow_requirement_to_delivery must provide. When delivery_method=local_git, it also creates and checks out the local working branch where code changes should be made.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Local repository path. | |
| delivery_method | No | Delivery implementation mode. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_DELIVERY_METHOD overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| remote_name | No | Git remote name. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_LOCAL_REMOTE_NAME overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| base_branch | No | Base branch to refresh before code generation. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_BASE_BRANCH overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| branch_name | No | Optional branch name override. Required for local_git when no summary/requirement_text is provided. | |
| english_slug | No | Optional English slug used when generating a local working branch. | |
| work_type | No | Optional git/conventional work type override when generating a local working branch. | |
| summary | No | Optional summary used to help generate a local working branch. | |
| requirement_text | No | Optional requirement text used to help generate a local working branch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | Prepared local workspace state used to generate delivery commit_actions. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |