Skip to content
Docs

Vercel CI

Inspect Vercel CI invocations, attempts, jobs, tasks, and logs for your team. Use retry_vercel_ci_invocation to retry an invocation.

Inspect a Vercel CI invocation attempt, including its status and conclusion.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Read logs for a Vercel CI invocation attempt.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
levelArray<string>NoOnly return log lines with one of these levels. Allowed values: "trace", "debug", "command", "info", "warn", "error", "systemError", "fatal".
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Returns an invocation attempt together with every job definition, its latest job run, and the task definitions and active task runs of that job run. Defaults to the latest attempt when attempt is omitted. With follow=1 the response is a newline-delimited JSON stream: a {"type":"tree", ...} event with the full tree is sent immediately and again whenever it changes, and a final {"type":"end","reason":...} event is sent when the attempt finishes (completed) or the stream reaches its maximum duration (timeout), after which clients should reconnect.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringNoInvocation attempt to return. Defaults to the latest attempt.
follownumberNoWhen 1, stream the tree as newline-delimited JSON until the attempt finishes. Allowed values: 0, 1.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Inspect a job definition within a Vercel CI invocation attempt.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Inspect a job run within a Vercel CI invocation attempt.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
runAttemptstringYesThe job run attempt number.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Read logs for a Vercel CI job run.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
runAttemptstringYesThe job run attempt number.
follownumberNoAllowed values: 0, 1.
sincenumberNo-
levelArray<string>NoOnly return log lines with one of these levels. Allowed values: "trace", "debug", "command", "info", "warn", "error", "systemError", "fatal".
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Returns log lines for the tasks of an invocation attempt in a single request, grouped by task. Tasks can be narrowed by name and by conclusion, for example conclusion=failed to fetch only the logs of failed tasks.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
taskArray<string>NoOnly return tasks with one of these names (e.g., "web#test").
conclusionArray<string>NoOnly return completed tasks with one of these conclusions. Allowed values: "succeeded", "cached", "failed", "skipped".
levelArray<string>NoOnly return log lines with one of these levels. Allowed values: "trace", "debug", "command", "info", "warn", "error", "systemError", "fatal".
limitnumberNoMaximum number of tasks to return (default: 10, max: 25).
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Get Task Run Logs With follow=1 the response is a newline-delimited JSON stream of log lines that ends once the task run has finished and its logs are flushed, or when the stream reaches its maximum duration.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
runAttemptstringYesThe job run attempt number.
taskDefinitionIdstringYesThe task definition ID.
taskRunAttemptstringYesThe task run attempt number.
follownumberNoWhen 1, stream log lines as newline-delimited JSON until the task run finishes. Allowed values: 0, 1.
sincenumberNo-
levelArray<string>NoOnly return log lines with one of these levels. Allowed values: "trace", "debug", "command", "info", "warn", "error", "systemError", "fatal".
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List the attempts for a Vercel CI invocation.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List Vercel CI invocations for your team. Filter by repository, branch, status, or conclusion.

Parameters

ParameterTypeRequiredDescription
providerstringNoRepository provider (e.g., "github"). Allowed values: "github", "gitlab", "bitbucket", "vercel".
repositorystringNoRepository slug (e.g., "vercel/next.js").
branchNamestringNoBranch name (e.g., "main").
snapshotstringNoSnapshot/commit hash.
statusArray<string>NoAllowed values: "new", "skipped", "bootstrapping", "bootstrapping_failed", "snapshotted", "sandbox_named", "jobs_on_hive_clone_dispatched", "jobs_on_hive_dispatched", "jobs_on_hive_completed", "jobs_on_hive_failed", "awaiting_jobs", "completed".
conclusionArray<string>NoAllowed values: "succeeded", "failed", "skipped".
sourceArray<string>NoAllowed values: "vercel-ci", "vercel-native-checks".
authorGitHubIdstringNo-
authorstringNoGitHub author login.
createdAfternumberNo-
createdBeforenumberNo-
limitnumberNoNumber of results per page (default: 20, max: 100).
cursorstringNoPagination cursor from a previous response.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List job definitions for a Vercel CI invocation attempt.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List runs of a job definition within a Vercel CI invocation attempt.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List Task Definitions

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
runAttemptstringYesThe job run attempt number.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

List task runs within a Vercel CI job run.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
jobDefinitionIdstringYesThe job definition ID.
runAttemptstringYesThe job run attempt number.
taskRunAttemptstringNoThe task run attempt number.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Retry a terminal Vercel CI invocation attempt identified by invocationId and attempt. Starts another attempt. inspect its state to determine whether it completes successfully.

Retry support depends on the invocation source and terminal state. Native-check invocations can return retry_not_supported. A successful retry starts another attempt. Inspect its status and logs before reporting the outcome.

Parameters

ParameterTypeRequiredDescription
invocationIdstringYesThe Vercel CI invocation ID.
attemptstringYesThe invocation attempt number.
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.
requestBodyunknownNoRequest body for this tool.

Was this helpful?

supported.