← All procedures

claude.cancel

Stop a turn and the processes that it started

CLI
Package
@procedures/claude-cli · README
Path
["claude","cancel"]
CLI
mark claude cancel --pid <integer>
As data
{"$proc":["claude","cancel"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/claude-cli/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["claude","cancel"], { pid: 1 });
console.log(JSON.stringify(result));

From the command line

$ mark claude cancel --pid <integer>

As data, in a program

{ "$proc": ["claude", "cancel"], "input": { "pid": 1 } }

Input

FieldTypeRequiredDefaultDescription
pidintegeryesThe process id of the turn

Output

FieldTypeRequiredDefaultDescription
stoppedbooleanyesTrue when the stop reached the process
reasonstringnoWhy the stop did not occur
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "pid": {
        "type": "integer",
        "minimum": 2,
        "maximum": 9007199254740991,
        "description": "The process id of the turn"
      }
    },
    "required": [
      "pid"
    ]
  },
  "output": {
    "type": "object",
    "properties": {
      "stopped": {
        "type": "boolean",
        "description": "True when the stop reached the process"
      },
      "reason": {
        "description": "Why the stop did not occur",
        "type": "string"
      }
    },
    "required": [
      "stopped"
    ],
    "additionalProperties": false
  }
}