Reconnect a GitHub or GitLab Workflow
reconnect_workflowRepair an inactive GitHub Workflow whose GitHub App was uninstalled and installed again: publishes its next version with only the installation changed, to the organisation’s live installation that can see the repository, which reactivates it. For a GitLab Workflow, likewise with its GitLab connection: to an active connection of the organisation whose user can read the project, registering its webhook again when it is gone. When the installation or connection it names is already live, nothing is published (published: false) and it is reactivated. Pass baseVersion (get_workflow): refused with WORKFLOW_BASE_VERSION_STALE when another version was published since. Refused with WORKFLOW_NO_INSTALLATION when no live installation can see the repository — start_github_install first — or the one it names is suspended (lifted on GitHub); with WORKFLOW_NO_GITLAB_CONNECTION when no active GitLab connection can read the project — connect GitLab in the web app first. Starts no run. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.
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": {
"workflowId": "<workflowId>",
"baseVersion": "<baseVersion>"
},
"name": "reconnect_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | Workflow id, from list_workflows or set_up_workflow | |
| baseVersion | Yes | The current version number, from get_workflow |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ||
| published | Yes | false when the installation it names was already live: it was only reactivated |