Docs menu

Asset Catalog

cancel_job

Use this when the person wants to stop an asset that generate_asset is still building. Send the job_id. What it had written is discarded. A build that already finished stays as it is; collect it with get_asset. Briefs and account plans can't be stopped.

Price: FreeMCP and A2A

Parameters

ParameterTypeRequiredDescription
job_idstringYesThe job_id returned by generate_asset.

Ask for it in your MCP client

Your client picks the tool and fills in the parameters from what you ask. These are the arguments it sends:

arguments
{
  "job_id": "<job_id>"
}

Call it over A2A

POST to https://api.andru-ai.com/api/a2a/tasks with your key in X-API-Key and A2A-Version: 1.0. See Send a task.

Request body
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "SendMessage",
  "params": {
    "message": {
      "messageId": "a new UUID",
      "role": "ROLE_USER",
      "parts": [
        {
          "data": {
            "tool": "cancel_job",
            "args": {
              "job_id": "<job_id>"
            }
          }
        }
      ]
    }
  }
}