Home / Servers / GitHub API / agent_automations_create_repo_automation

Create an automation for a repository

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

Create an automation for a repository > [!NOTE] > This endpoint is in public preview and is subject to change. Creates a new automation in a repository. Personal automations are private to their creator. Shared automations are visible… [POST /agents/repos/{owner}/{repo}/automations]

Name on the gateway: github_api__agent_automations_create_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.
name requiredstringThe name of the automation.
triggersobjectTrigger configuration for the automation.
prompt requiredstringThe prompt for the automation.
modelstringThe model to use for sessions triggered by this automation. Omit or leave…
reasoning_effortstringThe reasoning effort to use for sessions triggered by this automation. Omit or…
toolsarrayThe tools available to the automation.
enabledbooleanWhether the automation should be created enabled. Defaults to true when omitted.
typepersonal | sharedThe type of automation, fixed at creation. personal keeps it private to its…
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…

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",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "name": "…",
    "prompt": "…"
  }
}

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 create an automation for a repository tool with owner set to ….

More from GitHub API