SHIP

v0.24.0
ai.letsship/ship Checked 1 day ago Published 1 month ago

Assign Linear, Jira or GitHub issues to an AI coding agent team that plans, builds, reviews, tests.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

healthz API health probe

Returns the upstream API status, environment, and version.

whoami Identify the calling principal

Returns the caller's identity, org, role, role-derived RBAC capabilities, and token scopes. Use this to check whether the current token may perform an action (e.g. config:write) before attempting it.

get_setup_progress Get setup progress

Read what the workspace has set up with SHIP so far, as the console's setup checklist shows it: up to 13 milestones in three groups, taken in order (get started, make it yours, make it autonomous). `activeGroup` names the group to work on now, and each group carries its own count. Each milestone says whether it is reached and, when a console page takes it and the caller's role can, the page that does it. `next` names the first milestone not reached yet. Use it to suggest the next step to a person. If they say they will not finish setup, ask why and record it with report_setup_blocker.

get_billing Get workspace credits

Read the workspace's credit balance by source and expiry, whether a new mission would start now, the per-mission credit ceiling, the project allowance and recent usage. Check it before dispatching work.

check_model_credit Check model key credit

Ask each model key the workspace's agents run on whether its account can pay, with a billed request: a one-token answer for an OpenAI or Anthropic key (about a thousandth of a cent), and for an OpenRouter key the model and output limit of each default agent (less than a hundredth of a cent), which OpenRouter refuses when the balance cannot pay for the full output. willFail is true when the key the default agents use cannot pay: a mission started now stops at its first request. warning is the sentence to show the person.

list_billing_ledger List workspace credit ledger

List where the workspace's credits went, newest first: one entry per mission (its start, each further 3 agent-hours, and messages charged before messages became free), per grant, per adjustment and per expiry. Pass nextCursor back as cursor for the next page. Owners and admins only.

ParameterTypeDescription
cursorstringnextCursor from the previous page; omit for the newest entries.
limitintegerEntries per page, 1-100 (default 50).

list_credit_offers List credit packs, the monthly plans and Enterprise

List what SHIP sells: the credit packs (credits, the price in US dollars before tax, which checkout adds for the buyer's location, and the price per credit), the monthly plans under `team.plans` (Starter and Scale: each its credits a month, monthly price, price per credit, which credits added on top also cost, and agents at once), the range of credits a workspace on a plan can add at once, Enterprise under `enterprise` (the minimum yearly credit commitment, the highest and lowest price per credit, and the agents at once at the minimum; contracts are sold by SHIP, not through checkout), what Fr…

start_credit_checkout Start buying credits or a monthly plan

Opens a payment page and returns its URL. Nothing is charged until the buyer pays on that page. It sells one credit pack, a monthly plan (offer team, with teamPlan starter or scale, a subscription that renews until cancelled), or extra credits for a workspace already on a plan (offer team_credits, for quantity credits at that plan's own price per credit, paid once, expiring with the plan month). Only a workspace on a plan can use team_credits. Only owners and admins can open a page. The server refuses the request while startNow is false, and the same idempotencyKey returns the same page.

ParameterTypeDescription
offer *stringA pack, team or team_credits, from list_credit_offers.
startNow *booleanRecords the buyer's own consent to start the credits at once, during the withdrawal period, against this text: "Start my credits now, so they can be used during the 14-day withdrawal period. If I with…
idempotencyKeystringReuse on retry to get the same page back.
quantityintegerCredits for team_credits, within the range list_credit_offers gives; omit for a pack or a plan.
teamPlanstringThe plan to start, for offer team only: starter or scale, from list_credit_offers.

update_team_subscription Change the monthly plan subscription

Change the workspace's monthly plan subscription: plan switches between starter and scale from the next renewal on (nothing is charged or refunded for the current month; passing the current plan drops a waiting switch), or cancelAtPeriodEnd true ends it when the month already paid for ends, false resumes it before then. Pass at least one. Owners and admins only. The answer is the subscription as it now stands, with any waiting switch under nextPlan.

ParameterTypeDescription
cancelAtPeriodEndbooleantrue ends the subscription at the end of the paid month; false resumes it.
planstringThe plan from the next renewal on: starter or scale, from list_credit_offers.

request_more_credits Ask for more credits

Ask for more credits for the workspace, saying what they are for. Any member may ask. The answer says who has the request: SHIP for a sponsored or Enterprise workspace, its owners and admins otherwise. A message sent while a request is open joins it.

ParameterTypeDescription
message *stringWhat the credits are for.

get_notices Get workspace notices

Read what needs attention in the workspace, critical first: a tracker connection its vendor no longer accepts (missions cannot start or report back until someone reconnects it), or credits running out. Each notice has a stable id and kind, a message and, when the caller can act, an action URL to hand to a person. A notice the caller dismissed is left out. Check it before dispatching work.

dismiss_notice Dismiss a workspace notice

Close a notice for the person this token acts for, as the console's close button does. Only a notice with dismissible: true can be closed (a low balance). It stays closed while its id lasts: a low balance that a top-up ends and a later spend brings back has a new id and shows again. Critical notices cannot be closed.

ParameterTypeDescription
noticeId *stringThe notice's id from get_notices, e.g. credits_low:<grant>

report_setup_blocker Report why setup stops

Record why the person this token acts for will not finish setting up SHIP, in their words: for example no repository yet, no wish to set up model keys or credits, or no time now. Call it only after the person said why. Ask them when get_setup_progress shows setup is not done and they say they will stop. Do not guess a reason. Each call is a new report. A token that acts for no person is refused.

ParameterTypeDescription
reason *stringno-repository: no code or no GitHub repository to connect. want-templates: wants to start from a template. model-keys: does not want to set up model keys or credits with a model provider. github-acces…
detailstringThe person's own words, short. Leave out names, keys and anything private.

mark_setup_step Mark a setup step

Mark a step of the setup checklist completed or skipped for the person this token acts for, as the console's Mark as complete and Skip controls do; open removes the mark. Give step for one milestone, or group to mark every open step of that group (the console's Skip all). A marked step counts as done on that person's checklist and its status says how; reached stays false until SHIP sees the step done. Returns the checklist as it now stands. A token that acts for no person is refused.

ParameterTypeDescription
mark *stringopen removes the caller's mark.
groupstringA group id: marks every open step of the group.
stepstringThe milestone id from get_setup_progress. Give step or group.

list_projects List projects

List the projects accessible to the calling principal. Returns id, slug, name, status, createdAt for each. An empty list means the workspace is not set up yet: no mission can run until the person connects GitHub and a model key and creates a project in the SHIP console. Call get_setup_progress and give the person the console page of its next step.

ParameterTypeDescription
cursorstringOpaque pagination cursor from a previous call
limitintegerMax results (default 20)

get_project Get project

Fetch a single project by its UUID. Returns 404 if the project is not in the caller's org.

ParameterTypeDescription
projectId *stringProject UUID

update_project Change a project's settings

Change the settings of one project; a field you leave out keeps its value. status paused or archived stops new missions in the project, and active starts them again. autoMerge sets whether SHIP merges a ready pull request by itself. defaultSandboxTemplateId sets the sandbox the agents start in (null for the platform base). repoFullName, linearTeamKey and jiraProjectId connect the project to another repository, Linear team or Jira project through the organization's existing connections. tracker moves the project to another tracker: linear with linearTeamKey, jira with jiraConnectorId and jiraPr…

ParameterTypeDescription
projectId *stringProject id, from list_projects
autoMergebooleantrue merges a ready pull request without a person
defaultSandboxTemplateIdA sandbox id (sbt_...) from list_sandbox_templates, or null for the platform base
issueCodestringA GitHub Issues project's issue id prefix, 2-5 characters; only new ids use it
jiraConnectorIdstringThe Jira site's connection id, for tracker jira only
jiraProjectIdstringA Jira project's numeric id on the project's Jira site, e.g. 10000; Jira-tracked projects only
linearTeamKeystringThe key of the Linear team to connect, e.g. ENG
namestringA new name
repoFullNamestringowner/repo of the repository to connect, through the organization's GitHub connection
statusstringactive, paused or archived
trackerstringMove the project to linear, github-issues, jira or none; only when a person asked for the move

transfer_project_repository Transfer project repository

Move the repository that SHIP made for a project with Start from scratch into the person's own empty GitHub repository, or name that repository for a transfer that waits on it. Only the repository moves. The hosted site, its waitlist, its database and SHIP's models, paid in credits, stay. SHIP archives its own copy and deletes it after a grace period. Only an owner of the workspace can do this, and never while missions or site publishes of the project run. The result gives the next step in action: choose_target means the person makes an empty repository on their own GitHub account, installs SH…

ParameterTypeDescription
projectId *stringProject id from list_projects
connectorIdstringThe workspace's GitHub connection for the person's own installation of SHIP's GitHub App
idempotencyKeystringA key of your own: a repeat with the same key answers the same transfer
repositorystringThe person's empty repository as owner/name, which that installation covers

get_project_transfer Get project transfer

Read the transfer of a project's repository to the person's GitHub account: its state, what the person does next, where the repository goes, and when SHIP deletes its archived copy. This tool only reads: SHIP moves the transfer on by itself. The result gives the next step in action: choose_target means the person makes an empty repository on their own GitHub account, installs SHIP's GitHub App on it, and you call transfer_project_repository again with that connection's connectorId and the repository as owner/name. wait means SHIP copies and checks the repository: read the transfer with get_pro…

ParameterTypeDescription
projectId *stringProject id from list_projects

cancel_project_transfer Cancel project transfer

Stop the transfer of a project's repository before the project uses the new repository. The project keeps SHIP's copy, and SHIP writes nothing more to the person's repository. Only an owner of the workspace can do this.

ParameterTypeDescription
projectId *stringProject id from list_projects

start_mission Start a mission

Hand a mission off to the AI agent team. Omit startAt for the default full run (planner first); pass startAt='builder' with a plan to skip straight to coding; pass startAt='reviewer' or startAt='qa' with an existing prNumber to hand off an existing build. Requires the missions:run token scope.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-244 or WEB-42
projectId *stringProject id the mission belongs to
agentsobjectPer-role harness/model override for THIS mission only; overrides ship.yml without changing it
planstringHand-off plan markdown, for startAt='builder'
prNumberintegerExisting open PR number, required for startAt='reviewer' or startAt='qa'
startAtstringPipeline stage to enter at; omit for the default full run starting at the planner

create_mission Create a mission

Create the tracker issue AND start the run in one call, for work that has no issue yet. Pass entryStartAt='builder' with an entryPlan to hand over a plan you already wrote; pass entryStartAt='reviewer'/'qa' with entryPrNumber to hand over an existing build — in which case title may be omitted and the pull request's own title names the mission. For the first mission of a SHIP Sites project, pass starter (website, blog, docs or waitlist) and site, the shared form, in place of title and description: SHIP writes the issue, or a mission with no issue on a project SHIP made with Start from scratch…

set_agents_override Set a per-issue agents-override for one role

Patch one role's harness/model/effort/prompt for a single mission, layered over ship.yml per-field (a role or field this call omits keeps resolving from ship.yml — SHIP-337). Use promptContent or promptPath(+promptRef) to run an ephemeral prompt experiment (spec D9) without committing to the target repo. Read-modify-write: this call is merged onto the previously stored override record (via get_agents_override), so a prior set for a DIFFERENT role — or a different field on this same role, e.g. an earlier harness pin — survives; the underlying PUT is a full-record replace and would otherwi…

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-353 or WEB-42
projectId *stringProject id the mission belongs to
role *stringThe role this override entry patches
baseBranchstringOverride the pipeline's fork/target branch for this mission
checkpointbooleanPause the pipeline after this role's stage completes
effortstringReasoning effort for this role, mapped to the harness's own control at dispatch: low, medium, high or xhigh, and also max on claude-code. A value the harness does not take is refused at dispatch.
harnessstringThe code harness this role runs on for this mission
modelstringThe model id this role uses for this mission. The harness must support it
promptContentstringInline prompt-experiment body, capped at 30,000 characters. Mutually exclusive with promptPath.
promptModestringHow this prompt relates to the repo's own .ship/agents/<role>.md (or ship.yml-pointed) layer. replace (default) makes this the role's only role-prompt layer; extend resolves the repo's layer first and…
promptPathstringRepo-relative path to an L2 prompt file. Without promptRef this is the SHIP-347 pointer form (resolved at the pinned base branch); with promptRef it's a path+ref experiment resolved at that ref.
promptRefstringGit ref for promptPath — only meaningful alongside promptPath.
rejectOnstringReview rejection threshold — only meaningful on the reviewer role
sandboxstringSandbox name or id this role starts in for this mission (beats ship.yml and the project default)
sizeContainer size for this role on this mission

get_agents_override Read a mission's agents-override

Read the per-issue agents/baseBranch override record for one mission, or null when unset.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-353 or WEB-42
projectId *stringProject id the mission belongs to

send_mission_instruction Send a follow-up instruction to a mission

Tell a mission what to change. Use kind='follow_up' (the default) to ask for a change: the instruction reaches the agents AND dispatches the builder against the mission's open pull request, overriding cached review and QA verdicts. Use kind='note' to record context for whatever runs next without starting any work. A restart is a different thing: it re-evaluates an unchanged pull request against its cached verdicts, and so changes nothing. Returns a receipt saying what was recorded and what it will cause. This tool calls the SHIP API, documented at https://letsship.ai/docs/api. Requires the mis…

ParameterTypeDescription
body *stringWhat the agents should do. Travels verbatim into the prompt
issueId *stringIssue id the mission is tracked under, e.g. SHIP-244 or GH-1280
kindstringfollow_up (default) dispatches the builder; note records context and dispatches nothing

clear_agents_override Clear a mission's agents-override

Delete the per-issue agents/baseBranch override — the mission resolves from ship.yml again.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-353 or WEB-42
projectId *stringProject id the mission belongs to

list_missions List missions

List missions in the caller's accessible projects, newest activity first, with total for paging. Each has issueId, title, activity (what it does now), pipelineProgress, review/check/test state, PR, cost and paused. Archived missions are left out. Requires the missions:read scope.

ParameterTypeDescription
activitystringFilter by what the mission does now
limitintegerPage size (default 25). Narrow with projectId, activity or search before raising it.
offsetintegerRows to skip, for the next page
projectIdstringFilter to one project id
searchstringMatch the issue id, title, owner or repository

get_mission Get mission detail

Fetch one mission. view='summary' (the default, small enough to poll) returns its summary (activity, stage, review/check/test state, PR, paused and pauseSource, cost), its agent runs (sandboxId, role, status, harness, model, cost) and proofRunSandboxId (pass it to list_artifacts as sandboxId for the proof). view='full' adds its stages, events, stats and the plan/review/QA outcomes. pauseSource 'checkpoint:<role>' means a checkpoint holds it: resume_mission approves that stage. pauseSource 'qa-unverifiable' means QA could not check some acceptance criteria: answer_qa_checkpoint answers it. For…

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412
orgSlugstringNarrow an issue id to one org
projectIdstringNarrow an issue id that two projects share
viewstringsummary (default) for the state, runs and proof run; full for every stage, event and outcome

pause_mission Pause a mission

Hold a mission before its next stage. The stage that runs now finishes; no agent is stopped. Use resume_mission to continue. Requires the missions:write scope and a role that can control missions.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

resume_mission Resume a mission

Continue a paused mission. When a checkpoint holds it (get_mission shows pauseSource 'checkpoint:<role>'), this approves that stage's result and starts the next stage. To ask for changes to the result instead, use send_mission_instruction. Requires the missions:write scope.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

stop_mission Stop a mission

Hard-stop a mission: every agent run of it stops and its work in progress is lost. The pull request stays open, and start_mission starts the mission again. To stop one agent run only, use stop_agent_run. Requires the missions:write scope.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

approve_mission_ceiling Let a mission continue past its credit limit

A mission that reached its credit limit pauses until a member lets it continue. This raises the mission's limit by one step and runs the stage that stopped again, so it spends credits: ask the person first. Returns the new limit. Answers 409 when the mission is not at its limit. Requires the missions:run scope.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412
projectId *stringProject id the mission belongs to (get_mission's summary.projectId)

answer_qa_checkpoint Answer the QA checkpoint of a mission

A mission waits at the QA checkpoint (get_mission shows pauseSource 'qa-unverifiable') when QA could not check some acceptance criteria, so no code change can move it. A person checks those criteria another way, then answers. 'accept' counts QA as passed, 'reject' ends the mission as failed, and 'rerun' runs QA again on the same commit. Send only the decision the person made. Answers 409 when the mission does not wait at the QA checkpoint. Requires the missions:write scope.

ParameterTypeDescription
decision *stringaccept (QA counts as passed), reject (the mission fails) or rerun (QA runs again)
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

merge_mission Merge a mission's pull request

Merge the mission's open pull request on GitHub with the repository's own merge method; the mission then becomes done, and the merge cannot be undone from here. When the branch is out of date with its base, answers 202 with status 'updating_branch' and a message: SHIP updates the branch and merges once CI passes, with no further call. Answers 409 with the reason for any other blocker (missing reviews, failing checks, another branch protection). On a merge conflict SHIP starts the builder to fix it and merges once the mission is ready again, with no further call. Requires the missions:write sco…

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

decline_mission Decline a mission's pull request

Close the mission's open pull request on GitHub without merging it; the mission becomes declined, and no call here reopens it. Requires the missions:write scope.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

set_mission_auto_merge Turn auto-merge on or off for one mission

Set whether SHIP merges this mission's pull request by itself once the checks, the review and the test pass. The setting is for this mission only and replaces the project's auto-merge for it; get_project shows the project's. While it is on, SHIP merges without asking again. Requires the missions:write scope.

ParameterTypeDescription
enabled *booleantrue merges the pull request once it is ready; false leaves the merge to a person
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

archive_mission Archive a mission

Hide a finished mission from list_missions and the board. Nothing else changes: unarchive_mission shows it again. Requires the missions:write scope and the config:write capability (an owner or admin).

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

unarchive_mission Unarchive a mission

Show an archived mission in list_missions and on the board again. Requires the missions:write scope and the config:write capability.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412

set_mission_disposition Record why a mission ended

Record a person's reason for how a mission ended, which the delivery statistics use: product (real work, judged on its merits), probe (a test on purpose), superseded (another mission replaced it: give supersededBy) or takeover (a person finished the work outside SHIP); null clears it. Set it only with the person's answer, never from your own guess. Requires the missions:write scope and the config:write capability.

ParameterTypeDescription
disposition *product, probe, superseded or takeover; null clears a disposition set by mistake
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-412
supersededBystringThe issue id of the mission that replaced this one, for disposition superseded only

list_scheduled_tasks List scheduled tasks

List recurring agent missions (scheduled tasks) across the caller's accessible projects — schedule, enabled state, and next/last fire time for each. Pass projectId for the tasks of one project.

ParameterTypeDescription
projectIdstringOnly the scheduled tasks of this project

list_scheduled_task_templates List scheduled task templates

Read-only gallery of curated scheduled task templates — a prepared prompt plus a suggested cadence. A template is content, not a code path: pass its key as templateKey on create_scheduled_task for attribution, or copy its prompt/schedule into a hand-written scheduled task.

get_scheduled_task Get scheduled task

Fetch one scheduled task by id: its project, name, prompt, triggers (schedule), labels, template key, skip-if-previous-open setting, enabled state, and next/last run times. An id outside the caller's accessible projects returns not found. For what each fire produced, use list_scheduled_task_runs.

ParameterTypeDescription
scheduledTaskId *stringScheduled task id, e.g. from list_scheduled_tasks

create_scheduled_task Create a scheduled task

Create a recurring agent mission. Firing it — on schedule, or immediately via run_scheduled_task — creates an ordinary tracker issue assigned to the agent, which drives a normal pipeline run: a scheduled task is a stored mission request, not a new execution mode. This tool calls the SHIP API, documented at https://letsship.ai/docs/api. Requires the config:write capability.

ParameterTypeDescription
interval *stringFire cadence. 'weekly' requires weekday; 'monthly' requires dayOfMonth.
name *stringScheduled task name, shown in the console and used in the issue title
projectId *stringProject id the scheduled task belongs to
prompt *stringBecomes the created issue's description verbatim on every fire
time *string24-hour wall-clock time in `timezone`, e.g. '09:00'.
timezone *stringIANA timezone id, e.g. 'Europe/Amsterdam'.
dayOfMonthintegerDay of month, 1-28 — required when interval is 'monthly' (capped at 28 so every month has the day).
enabledbooleanWhether the schedule is armed (default true)
labelsarrayTracker label names put on every issue this scheduled task files (default none). The label must ALREADY exist in the project's tracker team — the platform attaches labels but cannot create them, so…
skipIfPreviousOpenbooleanSkip a scheduled fire while the previous fire's mission is still open (default true — the guardrail is opt-out, not opt-in)
templateKeystringAttribution only, when authored from a template — see list_scheduled_task_templates
weekdaystringDay of week — required when interval is 'weekly'.

update_scheduled_task Update a scheduled task

Patch a scheduled task's name, prompt, schedule, skip-guard, or enabled state — only the fields passed are changed. To change the schedule, set interval/time/timezone together (plus weekday or dayOfMonth as the interval requires). This tool calls the SHIP API, documented at https://letsship.ai/docs/api. Requires the config:write capability.

ParameterTypeDescription
scheduledTaskId *stringScheduled task id to update
dayOfMonthintegerDay of month, 1-28 — required when interval is 'monthly' (capped at 28 so every month has the day).
enabledbooleanSet false to pause the schedule without deleting the scheduled task
intervalstringFire cadence. 'weekly' requires weekday; 'monthly' requires dayOfMonth.
labelsarrayTracker label names put on every issue this scheduled task files (replaces the list; [] clears it). The label must ALREADY exist in the project's tracker team — the platform attaches labels but cann…
namestringScheduled task name, shown in the console and used in the issue title
promptstringReplaces the issue description verbatim
skipIfPreviousOpenbooleanSkip a scheduled fire while the previous fire's mission is still open (default true — the guardrail is opt-out, not opt-in)
timestring24-hour wall-clock time in `timezone`, e.g. '09:00'.
timezonestringIANA timezone id, e.g. 'Europe/Amsterdam'.
weekdaystringDay of week — required when interval is 'weekly'.

run_scheduled_task Run a scheduled task now

Fire a scheduled task immediately, bypassing both its schedule and the skip-if-previous-open guard — an explicit run always creates a new issue even while a prior fire's mission is still open. Requires the pipeline:control capability and, for a token caller, the missions:run scope — the same authorization starting a mission by hand requires, because it is the same act.

ParameterTypeDescription
scheduledTaskId *stringScheduled task id to fire

list_scheduled_task_runs List a scheduled task's run history

Run history for one scheduled task, each row's status (dispatching/dispatched/skipped/failed) and, once its issue exists, the joined mission progress/cost. A 'dispatched' status means the issue was created and the mission started — never that the work succeeded; read the joined mission state for that. Newest first; when older runs exist, pass nextCursor back as cursor for the next page.

ParameterTypeDescription
scheduledTaskId *stringScheduled task id
cursorstringnextCursor from the previous page; omit for the newest runs
limitintegerRuns per page, 1-200 (default 50)

delete_scheduled_task Delete a scheduled task

Delete a scheduled task and its run history, which no call can bring back. Missions it already started continue. Setting enabled to false stops new runs and keeps the task and its history. Requires the scheduled-tasks:write scope and the config:write capability.

ParameterTypeDescription
scheduledTaskId *stringScheduled task id to delete

list_mcp_servers List a project's MCP servers

The MCP servers a project's repository declares in its MCP file (.mcp.json by default), each with its binding: enabled roles, transport, status, approved tools, per-role effective tool counts (null when the server runs inside the sandbox and the role gets every tool it exposes), and the NAMES of the credential fields set (never values). Also reports whether the file could be read (configStatus).

ParameterTypeDescription
projectId *stringProject id, e.g. from list_projects

list_mcp_bindings List the org's MCP bindings

Every MCP server binding across the projects you can see in your org: project, server, transport, status, enabled roles, how it authenticates, and the NAMES of the credential fields set (never values). Use it to find where a credential is used; use list_mcp_servers for one project's full detail.

set_mcp_config_path Set a project's MCP file path

Point the project at the repository file that declares its MCP servers, e.g. .cursor/mcp.json or .vscode/mcp.json. null restores the default (.mcp.json). The file is read, never edited. When the repository's ship.yml sets mcp.config, that wins and this call is refused (409); list_mcp_servers reports which one applies as configPathSource. Requires the config:write capability.

ParameterTypeDescription
configPath *Repository-relative path, or null
projectId *stringProject id, e.g. from list_projects

bind_mcp_server Bind an MCP server

Create or update the binding for a server the repository declares. roles is the full set of pipeline roles that may use it (reviewer and qa only ever receive read-only tools, and cannot use a server that runs inside the sandbox). transport: 'remote' (the gateway proxies to the server's URL), 'isolate' (the gateway runs the server's npm package in isolation, for a command that needs a secret) or 'local' (the command runs inside the sandbox, no credential). Omit transport and remoteUrl on an update to keep the server the binding is pinned to, with its credential (a roles, tools or credential edi…

ParameterTypeDescription
projectId *stringProject id, e.g. from list_projects
roles *arrayEvery role that may use the server ([] disables it)
serverName *stringServer name as the repository's MCP file declares it (see list_mcp_servers)
approvedToolsarrayThe approved subset of the tool snapshot (refresh_mcp_server_tools first). Omit to keep it.
credentialWrite-only credential the gateway attaches; agents never receive it. Omit to keep the stored one. OAuth credentials are not set here: bind as remote with kind 'none', then start_mcp_server_oauth.
remoteUrlstringA fixed https URL: a hosted endpoint for a command server, or an override for a URL server
transportstringHow the gateway reaches the server: 'remote' proxies to remoteUrl, 'isolate' runs the server's npm package away from the sandbox so a secret stays out of it, and 'local' runs the command inside the sa…

unbind_mcp_server Remove an MCP server binding

Delete a binding and its stored credential: no role receives the server from its next run. The repository's MCP file is not changed, so the server can be bound again. Requires config:write.

ParameterTypeDescription
projectId *stringProject id, e.g. from list_projects
serverName *stringServer name as the repository's MCP file declares it (see list_mcp_servers)

refresh_mcp_server_tools Refresh an MCP server's tool list

Snapshot the bound server's current tools (with their readOnlyHint / destructiveHint annotations) for approval. Approvals of tools that no longer exist are dropped. The binding must be ready; a server inside the sandbox has no gateway tool list. Requires config:write.

ParameterTypeDescription
projectId *stringProject id, e.g. from list_projects
serverName *stringServer name as the repository's MCP file declares it (see list_mcp_servers)

start_mcp_server_oauth Start OAuth for a remote MCP server

Begin the OAuth consent for a server bound as remote. Returns an authorizeUrl that a HUMAN must open in a browser signed in to the SHIP console as the same user this token acts for; the provider returns to the console, which stores the credential. The link is single-use and expires (expiresAt). An agent cannot complete the consent itself. Requires config:write.

ParameterTypeDescription
projectId *stringProject id, e.g. from list_projects
serverName *stringServer name as the repository's MCP file declares it (see list_mcp_servers)
returnTostringConsole path to land on after consent, e.g. /projects/<id>
scopestringRequested scope; defaults to the server's own hint

list_agent_runs List agent runs

List the agent runs, live and finished, in the caller's accessible projects, newest first. Each run is one agent in its own sandbox. Returns id (the run's sandbox id), issueId, role, harness, status, instance type, and latest CPU/memory/disk metrics. When more runs match, nextCursor is set: pass it back as cursor, with the same filters, for the next page.

ParameterTypeDescription
cursorstringnextCursor from the previous page; omit for the newest runs
issueIdstringOnly the runs of this mission, by its issue id, e.g. SHIP-412
limitintegerMax results (default 50). Narrow with projectId, issueId, role or status before raising it.
projectIdstringFilter to one project id
rolestringOnly the runs of this agent role
statusstringFilter by how the run stands: running, completed (finished), stopped (ended on purpose before it finished), failed, or stale (closed without a report)

get_agent_run Get agent run detail

Fetch one agent run: its run record, metric series (CPU/mem/disk over time), and the agent session summaries (role, outcome, cost, sessionId). sessions lists every session of the run's role on the mission; runSessionId names this run's own, so read its log and cost from that one.

ParameterTypeDescription
sandboxId *stringAgent run id: the run's sandbox id, from list_agent_runs

get_agent_run_logs Get agent run logs

Fetch a session's log content from one agent run. part=session is the agent stream-json (reasoning + tool calls); part=system is the container/runner stdout (clone, dependency install, validation gate, git, callback); part=prompt is the assembled input prompt. The role and sessionId are fields of the agent run's own record. A log longer than 40,000 characters returns its end, from a whole line, with a note.

ParameterTypeDescription
role *stringAgent role: planner | builder | reviewer | qa
sandboxId *stringAgent run id: the run's sandbox id
sessionId *stringSession id from get_agent_run's sessions list
partstringWhich log stream to read

watch_agent_run Watch an agent run

Wait on one agent run and follow what its agent does, instead of polling get_agent_run. The call returns when the run ends, when its mission moves to another stage, or after maxSeconds. While it waits, each agent event (a thought, a tool call, a plan update, an error) is sent as a progress notification when the request has a progress token. The result has the status of the run, the stage of its mission, ended, the reason it returned, the last 20 events and a cursor. When the run is still running, call it again with since set to the cursor. A run that already ended returns at once. If your clie…

ParameterTypeDescription
sandboxId *stringAgent run id: the run's sandbox id, from list_agent_runs or get_mission
maxSecondsintegerThe longest time to wait, in seconds (default 300, at most 600)
sinceintegerThe cursor from an earlier result. Only the events after it are sent

stop_agent_run Stop an agent run

Stop the agent in one run before it finishes. Its work in progress is lost, and the run's status becomes stopped a few seconds later. Needs an org admin and the sandboxes:stop scope. This stops one agent run, not the mission: to stop the whole mission, use POST /v1/missions/{issueId}/stop.

ParameterTypeDescription
sandboxId *stringAgent run id: the run's sandbox id, from list_agent_runs

list_sandbox_templates List custom sandboxes

List the org's sandboxes (definitions agents start in), with each one's active version, size and latest build status.

get_sandbox_capacity Read how many agents are running

How many agents the org's missions are running at once against its limit (null while the org is unclassified), which missions wait for an agent slot and why, and whether every slot on the platform is taken. Read from the platform's once-a-minute capacity check.

ParameterTypeDescription
orgIdstringRequired only for a caller in several orgs

list_sandbox_starters List sandbox starters

Ready-made sandbox definitions (Python, Java, Go, Rust, Ruby) to create a sandbox from.

list_sandbox_template_versions List a sandbox's versions

Every saved version of a sandbox, newest first, with the active one marked and each one's latest build.

ParameterTypeDescription
templateId *stringSandbox id (sbt_...)

get_sandbox_build_log Read a sandbox build's log

A page of a build's log after sequence number `after`. Call again with after = nextAfter until done is true.

ParameterTypeDescription
buildId *stringBuild id (tbd_...)
templateId *stringSandbox id (sbt_...)
afterintegerReturn chunks after this sequence number (default 0)

save_sandbox_template Create or update a sandbox

Create a sandbox (omit templateId) or change one. A definition is Dockerfile steps on the platform base (RUN, ENV, ARG, WORKDIR, USER; no FROM). A changed definition or size becomes a new version and is built at once; the response carries that build. Refusals name the line or the size bound.

ParameterTypeDescription
dockerfilestringThe Dockerfile that builds the sandbox image. Give this or starterId to create; it replaces the file on an update
namestringRequired when creating
sizeA tier, or { vcpu, memoryMib, diskMb } within 1-4 vCPU, >=3072 MiB per vCPU, <=12288 MiB, 8000-20000 MB
starterIdstringCreate from a starter's definition and size
templateIdstringSandbox id (sbt_...)

activate_sandbox_template_version Roll a sandbox back (or forward) to a version

Make a version the one missions use from their next dispatch. It is rebuilt only if its snapshot is gone; the response says which.

ParameterTypeDescription
templateId *stringSandbox id (sbt_...)
versionId *stringVersion id (stv_...)

build_sandbox_template Build a sandbox now

Build the sandbox's active version, or return the build already running for it.

ParameterTypeDescription
templateId *stringSandbox id (sbt_...)

list_sandbox_registries List private registries

The org's private package registries sandboxes install from: host, auth scheme, username. Never the secret.

save_sandbox_registry Store a private registry credential

Store (or replace) the credential for a registry host. The platform attaches it to sandbox requests for that host only; it never enters a sandbox and is never returned.

ParameterTypeDescription
host *stringRegistry host or URL, e.g. npm.pkg.github.com
scheme *stringHow the registry takes the credential: 'bearer' sends secret as a token, 'basic' sends username and secret
secret *stringToken or password
usernamestringRequired for basic

delete_sandbox_template Delete a sandbox

Delete a sandbox with all its versions and builds. Answers 409 while an agent or a project's default sandbox uses it: point those at another sandbox first (update_project with defaultSandboxTemplateId). Missions that run in it now finish. Requires the agents:write scope and the config:write capability.

ParameterTypeDescription
templateId *stringSandbox id (sbt_...)

delete_sandbox_registry Remove a private registry credential

Delete the stored credential of a private registry (an id from list_sandbox_registries). A sandbox build that installs from that host then gets no credential. Requires the connectors:write scope and the config:write capability.

ParameterTypeDescription
registryId *stringRegistry credential id, from list_sandbox_registries

list_environments List preview environments

List per-mission preview environments for the caller's accessible projects. Returns id, issueId, projectId, prNumber, workerName, and lifecycle status.

ParameterTypeDescription
issueIdstringFilter to one issue id
limitintegerMax results (default 50). Narrow with issueId, projectId or status before raising it.
projectIdstringFilter to one project id
statusstringFilter by lifecycle status

get_environment Get preview environment detail

Fetch one preview environment's registry row (status, worker name, timestamps).

ParameterTypeDescription
environmentId *stringEnvironment id (from list_environments)

destroy_environment Destroy a preview environment

Request teardown of a preview environment (its deployed Worker(s) + every provisioned datastore). Enqueues to the orchestrator; requires project write capability.

ParameterTypeDescription
environmentId *stringEnvironment id to tear down

list_artifacts List artifacts

List proof-of-work artifacts (QA screenshots/video/traces) for the caller's accessible projects. Each row carries kind, content type, caption, the acceptance criterion it proves, the sandboxId of the agent run that produced it, and a long-lived signed serving url. Filter by issueId to get one ticket's evidence: the artifacts of every run, superseded QA attempts included, up to limit; a note says when more exist. For the mission's proof of work specifically, read proofRunSandboxId from GET /v1/missions/{id} and pass it as sandboxId.

ParameterTypeDescription
issueIdstringFilter to one issue (e.g. SHIP-133)
limitintegerMax results (default 50). Narrow with issueId or sandboxId before raising it.
projectIdstringFilter to one project id
sandboxIdstringFilter to ONE agent run's artifacts (e.g. the mission's proofRunSandboxId)

get_artifact Get artifact

Fetch one artifact's metadata + a long-lived signed serving url (open it to view the screenshot/video).

ParameterTypeDescription
id *stringArtifact id (from list_artifacts)

inspect_mission Inspect mission

Fetch the typed platform-inspection report for a mission, by its issue id. Returns per-section KV/D1/R2 state: task state, retry reason, dispatch error, latest review + QA verdicts, run index, per-attempt provenance, running sandboxes, and session-log heads. Requires the inspect:read scope.

ParameterTypeDescription
issueId *stringThe mission's issue id: a Linear key or a GitHub Issues id, e.g. SHIP-199 or WEB-42
orgSlugstringNarrow an ambiguous issue code to one org
projectIdstringScope to a specific project id
sectionsstringComma-separated section filter (default all): taskState,retryReason,provenance,…

list_orgs List every org (cross-tenant)

List every organization on the platform with its owner email, member count, and pending invite status. Requires platform-admin (cross_org) access. Cursor-paginated (default page size 50) — feed the response's nextCursor back as the cursor input to reach the next page; a null nextCursor means there are no more pages.

ParameterTypeDescription
cursorstringOpaque page cursor, echoed back as nextCursor by a prior call
limitintegerPage size, 1-100 (API default 50)