Skip to content

Support Base dashboard button blocks in dashboard CLI #1557

Description

@Fbin2333

Feature request

Please add first-class support for Base dashboard button blocks in the lark-cli base +dashboard-* commands.

Current behavior

In Feishu/Lark Base web UI, dashboard button components can be added and configured to open links. However, with lark-cli version 1.0.57, creating a dashboard block with --type button fails with an unsupported block type error.

Reproduction shape, with private IDs omitted:

lark-cli base +dashboard-block-create \
  --base-token <base_token> \
  --dashboard-id <dashboard_id> \
  --name "Add source" \
  --type button \
  --data-config '{"table_name":"Creators","count_all":true}' \
  --as user

Observed result:

unsupported block type "button"

After a button is created manually in the Base web UI, +dashboard-get can list the block as block_type=button, and +dashboard-block-get can return a generic block payload, but it does not expose the button label, action, or link target.

Expected behavior

Ideally the CLI would support:

  1. Creating dashboard button blocks.
  2. Updating button display text / label.
  3. Configuring button action, especially open_link.
  4. Reading back the button label/action/link config through +dashboard-block-get.

A possible CLI data shape could be something like:

{
  "label": "Add source",
  "action": "open_link",
  "url": "https://example.com/form"
}

Why this matters

Dashboard buttons are useful for AI-agent-built Base dashboards where the cockpit needs clear navigation, such as:

  • opening a source intake form,
  • drilling into a filtered daily view,
  • linking to a workflow entry point.

Without button support, agents can only create text blocks with URLs as a fallback, while the actual button component still has to be configured manually in the web UI.

Environment

  • lark-cli version 1.0.57
  • Domain: Base dashboard commands
  • Identity: user auth

Thanks for maintaining the CLI and the Base agent skills.

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain/basePR touches the base domaindomain/coreCLI framework and core librariesenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions