Home / Servers / GitHub API / agent_automations_create_repo_automation_task

Run an automation

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Run an automation > [!NOTE] > This endpoint is in public preview and is subject to change. Runs an automation in a repository. Set event to manual and optionally include context of up to 10,000 characters, which will… [POST /agents/repos/{owner}/{repo}/automations/{automation_id}/tasks]

Name on the gateway: github_api__agent_automations_create_repo_automation_task · 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.
event requiredmanualThe event to trigger. Only manual is supported.
contextstringAdditional context for this automation run, up to 10,000 characters. Supported…

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_create_repo_automation_task",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "automation_id": "…",
    "event": "…"
  }
}

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 run an automation tool with owner set to ….

More from GitHub API