MCP TypeScript SDK (V2)
    Preparing search index...
    • Experimental

      Checks if a task status represents a terminal state. Terminal states are those where the task has finished and will not change.

      Parameters

      • status: "working" | "input_required" | "completed" | "failed" | "cancelled"

        The task status to check

      Returns boolean

      true if the status is terminal (completed, failed, or cancelled)