Skip to content

ark_job_cancel

Cancel one of your background jobs.

Stops the local worker only; a provider operation already accepted by BytePlus is not cancelled.

Requirement Value
Registration Always registered; no provider credentials required.
Execution Foreground only
Required permission No fixed per-tool scope; HTTP authentication and target-tool authorization still apply.

This site lists the full configured capability surface, not the tools enabled on your particular server. Use model discovery and job discovery to check your connection. Credentials are server configuration, never tool arguments.

Ask your connected AI client to use ark_job_cancel for the operation you want. The client constructs the arguments and handles tool calls. Review its proposed operation before approving anything billable. For a non-billable introduction, start with discovery without generation.

Call this tool directly. It is not a background-job target.

Exact MCP call (for developers)

The following is an MCP tool-call envelope, not a shell command. Example media URLs and identifiers must be replaced with your own accessible resources. Seedream and Seedance examples are non-billable dry runs; other provider operations may incur charges.

{
"name": "ark_job_cancel",
"arguments": {
"input": {
"job_id": "example-job-id-replace-me"
}
}
}

The MCP arguments object wraps these fields as {"input": {...}}.

Field Type Required Description and constraints
job_id string Yes job_id returned by ark_job_submit (not a provider task ID).; minLength: 20; maxLength: 128; pattern: ”^[A-Za-z0-9_-]+$”
Field Type Required Description and constraints
job_id string Yes Server-generated Ark background job ID that was cancelled.; minLength: 20; maxLength: 128; pattern: ”^[A-Za-z0-9_-]+$”
status “cancelled” No Terminal cancellation state.; Default: “cancelled”

Field types named above refer to these shared definitions. Optional/null fields, enum choices and bounds are retained in the complete schemas below. Schema validation is followed by runtime capability and security checks.

BackgroundJobIdInput
Field Type Required Description and constraints
job_id string Yes job_id returned by ark_job_submit (not a provider task ID).; minLength: 20; maxLength: 128; pattern: ”^[A-Za-z0-9_-]+$”
Input schema, including the MCP wrapper
{
"$defs": {
"BackgroundJobIdInput": {
"description": "Input model for Ark background job retrieval and cancellation.",
"properties": {
"job_id": {
"description": "job_id returned by ark_job_submit (not a provider task ID).",
"maxLength": 128,
"minLength": 20,
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"job_id"
],
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/$defs/BackgroundJobIdInput"
}
},
"required": [
"input"
],
"type": "object"
}
Output schema, including nested definitions
{
"description": "Acknowledgement returned after a background job is cancelled.",
"properties": {
"job_id": {
"description": "Server-generated Ark background job ID that was cancelled.",
"maxLength": 128,
"minLength": 20,
"pattern": "^[A-Za-z0-9_-]+$",
"title": "Job Id",
"type": "string"
},
"status": {
"const": "cancelled",
"default": "cancelled",
"description": "Terminal cancellation state.",
"title": "Status",
"type": "string"
}
},
"required": [
"job_id"
],
"title": "BackgroundJobCancelled",
"type": "object"
}
  • Missing tool: check provider credentials and feature flags, then restart the connection.
  • Invalid arguments: keep the correct wrapper and follow current model limits from discovery. A valid schema alone does not prove the chosen model supports the combination.
  • A job completes with an error: inspect the original tool result, not only the outer job status. Never automatically resubmit potentially billable work.
  • Local output writes from jobs require server-configured OUTPUT_ROOTS; HTTP cannot write to a client’s local disk.

See configuration, background execution, and artifact delivery.