workflow_sync_local_branch
Fetch or pull latest changes and checkout a specific local branch to sync your repository.
Instructions
Use when local repository should fetch/pull and switch to a target branch. Local git operations only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch_name | Yes | Target branch to checkout locally. | |
| repo_path | Yes | Local repository path. | |
| 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 | Optional base branch to pull before checkout. 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | Local repository sync and branch checkout result. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |