Skip to main content

@slack/types / TaskCardBlock

Interface: TaskCardBlock

Defined in: block-kit/blocks.ts:580

Description​

A discrete task or tool call.

See​

https://docs.slack.dev/reference/block-kit/blocks/task-card-block/

Extends​

Properties​

block_id?​

optional block_id?: string;

Defined in: block-kit/blocks.ts:50

Description​

A string acting as a unique identifier for a block. If not specified, a block_id will be generated. You can use this block_id when you receive an interaction payload to identify the source of the action. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id.

Inherited from​

Block.block_id


details?​

optional details?: RichTextBlock;

Defined in: block-kit/blocks.ts:599

Description​

Details of the task in the form of a single "rich_text" entity.


output?​

optional output?: RichTextBlock;

Defined in: block-kit/blocks.ts:604

Description​

Output of the task in the form of a single "rich_text" entity.


sources?​

optional sources?: URLSourceElement[];

Defined in: block-kit/blocks.ts:609

Description​

Array of URL source elements used to generate a response.


status​

status: "error" | "pending" | "in_progress" | "complete";

Defined in: block-kit/blocks.ts:614

Description​

The state of a task. Can be "pending", "in_progress", "complete", or "error".


task_id​

task_id: string;

Defined in: block-kit/blocks.ts:589

Description​

ID for the task.


title​

title: string;

Defined in: block-kit/blocks.ts:594

Description​

Title of the task in plain text.


type​

type: "task_card";

Defined in: block-kit/blocks.ts:584

Description​

The type of block. For this block, type will always be task_card.

Overrides​

Block.type