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

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository. The name is not case sensitive.
automation_id requiredstringThe unique identifier of the automation.
namestringThe name of the automation.
enabledbooleanSet to true to enable, false to disable. Omit to leave unchanged.
require_actor_write_permissionbooleanWhen true, event-triggered runs require the event actor to have repo write…
continuous_historybooleanWhen true, runs of this automation build on the session history of its…
modelstringThe model to use for sessions triggered by this automation. Omit to leave…
reasoning_effortstringThe reasoning effort to use for sessions triggered by this automation. Omit to…
triggersobjectTrigger configuration for the automation.
promptstringThe prompt for the automation.
toolsarrayThe 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:

call_tool arguments
{
  "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:

Run in your terminal
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 ….

More from GitHub API