Home / Servers / GitHub API / agent_automations_edit_repo_automation
Update an automation
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Update an automation > [!NOTE] > This endpoint is in public preview and is subject to change. Updates an existing automation in a repository. The automation must be a personal automation belonging to you or a shared… [PATCH /agents/repos/{owner}/{repo}/automations/{automation_id}]
Name on the gateway: github_api__agent_automations_edit_repo_automation · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository. The name is not case sensitive. |
automation_id required | string | The unique identifier of the automation. |
name | string | The name of the automation. |
enabled | boolean | Set to true to enable, false to disable. Omit to leave unchanged. |
require_actor_write_permission | boolean | When true, event-triggered runs require the event actor to have repo write… |
continuous_history | boolean | When true, runs of this automation build on the session history of its… |
model | string | The model to use for sessions triggered by this automation. Omit to leave… |
reasoning_effort | string | The reasoning effort to use for sessions triggered by this automation. Omit to… |
triggers | object | Trigger configuration for the automation. |
prompt | string | The prompt for the automation. |
tools | array | The tools available to the automation. Send an empty array to clear all tools. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__agent_automations_edit_repo_automation",
"arguments": {
"owner": "…",
"repo": "…",
"automation_id": "…"
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the update an automation tool with owner set to ….