Skip to main content
Use these tools to discover projects, inspect applications and infrastructure, connect GitHub repositories, and create or update deployments. Tools that make changes are called out where they appear. Most tools require a project, given as either its ID or exact name. get_projects takes no arguments, while connect_github takes only a repository. Application arguments accept an app name or UUID, and cluster arguments accept a cluster ID, exact name, or vanity name. Start with get_projects to resolve the project, then get_applications or get_clusters from there.

Projects & Discovery

Applications

Jobs

Clusters & Infrastructure

GitHub

connect_github

Check whether Porter can reach a repository before inspecting or deploying its code. The tool takes only repository, in owner/name form. Each call returns one complete connection state. If the user completes a returned browser action, call the tool again to check the new state.

create_github_workflow

Use this recovery tool only when create_app returned a placeholder application without a pull request URL, or when an existing application is missing its workflow pull request. It takes project and app, then creates or re-creates the GitHub Actions workflow pull request and returns its URL. Do not call it after create_app successfully returns a pull request URL.

Create, update, and redeploy applications

These tools can create, update, or redeploy applications, or start job runs, and may have unintended side effects. Review the agent’s plan before approving any call to create_app, update_application, redeploy_application, or trigger_job_run.
create_app and create_github_workflow create an application or workflow pull request rather than overwrite deployed state.

create_app

Create a new application. The behavior depends on which inputs you pass: Before using the recommended GitHub source and build flow, call connect_github with the repository and proceed only when it returns next_step: none. image is mutually exclusive with source and build. Creation fails if an application with the same name already exists in the target project or cluster. Use update_application instead. For source and build, review and merge the pull request returned by create_app. The merge triggers the workflow that builds the application’s code and runs the first real deployment. If the placeholder application has no pull request URL, recover it with create_github_workflow. See Deploy from a GitHub repository for the full flow.

update_application

Update an application’s configuration. Defaults to a dry run, which validates the change and returns the resulting config without deploying. Set dry_run: false to deploy.

redeploy_application

Trigger an immediate redeploy of an application.

trigger_job_run

Start a run of a job service on an application, optionally overriding the run command or the entrypoint and arguments. Returns the run name; use get_job_run for status and get_app_logs for output.