Skip to content
On this page

Commands

Blocks

Inspect workflow blocks, integration blocks, and triggers available to the workspace.

The catalog reflects the workspace’s allowed integrations, revealed preview blocks, and deployed custom blocks.

These commands accept the global options.

List blocks

Code
sim blocks list [options]

Options

OptionRequiredDescription
--search <value>NoCase-insensitive substring match against the block id, name, and description.
--category <value>NoRestrict to one toolbar category. Accepted values: blocks, tools, triggers.
--capability <value>NoRestrict to blocks that can start a workflow — the triggers category, blocks declaring triggerAllowed, and blocks with trigger-mode fields. Accepted values: trigger.
--source <value>NoRestrict to shipped blocks or to this workspace’s deployed custom blocks. Accepted values: builtin, custom.
--include-sunsetNoInclude legacy and deprecated blocks. Off by default: a sunset block keeps executing where it is already placed, but it is not offered for new authoring. Each returned entry carries sunset.replacedBy, the block to build with instead.
--no-include-sunsetNoSend --include-sunset as false.
--sort-by <value>NoField used to sort the result. Do not rely on case-insensitive ordering when sorting by name. Defaults to "id". Accepted values: id, name, category.
--sort-order <value>NoSort direction. Defaults to "asc". Accepted values: asc, desc.
--limit <n>NoMaximum items to return (0 for everything). Defaults to 0.

API request and response schemas: listBlocks.

Get block

Code
sim blocks get <blockId>

Arguments

ArgumentRequiredDescription
blockIdYesBlock type identifier. An unversioned base type resolves to the newest visible version. The response echoes the resolved ID. A legacy or deprecated block (such as starter) is readable by its exact ID, and its description opens with the block that replaces it.
Code
Reading it for `sim workflows operations apply`:
  id                    the type to add: `blocks get table` answers table_v2 (an add of legacy
                        table is refused)
  inputSchema           the field ids inputs takes; operationInputSchema, an operation's own
  inputDefinitions      the block's inputs by name; one a pair of fields shares (tableId for
                        tableSelector and manualTableId) is accepted in place of the pair
  outputs               what it outputs on success; a failed block outputs {"error":"…"}
                        instead, read on its error path as <name.error>
Block settings such as retry are not fields: `sim workflows operations apply --help`.

API request and response schemas: getBlock.

Was this helpful?
Suggest an edit