ui-action

ui-action is a command for coding agents from ch-bas/kibana-plugin-helper. It costs 25 tokens per session (1,052 once invoked), scanned A, original, MIT.

A generator for Kibana UI Actions and Triggers, which let plugins respond to user interactions or communicate with other plugins.

In plain words
What is it for?
Use it for row-click behavior, context menus, dashboard panel actions, flyouts, modals, navigation, filters, and other programmatic interactions.
Why use it?
It removes the boilerplate needed to register an action, define the data it receives, connect it to a trigger, and run it in the right interface location.

Command

Part of the kibana-plugin-helper plugin — 1 skill, 8 commands, 5 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ch-bas/kibana-plugin-helper/ui-action
Clone the repo
git clone --depth 1 https://github.com/ch-bas/kibana-plugin-helper

Or install kibana-plugin-helper, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-action

README.md
[![agentmods](https://agentmods.dev/badge/commands/ch-bas/kibana-plugin-helper/ui-action.svg)](https://agentmods.dev/commands/ch-bas/kibana-plugin-helper/ui-action)
Your own site
<a href="https://agentmods.dev/commands/ch-bas/kibana-plugin-helper/ui-action"><img src="https://agentmods.dev/badge/commands/ch-bas/kibana-plugin-helper/ui-action.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,052 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.01052
Opus 5 $0.00013 $0.00526
Sonnet 5 $0.00005 $0.00210
Haiku 4.5 $0.00003 $0.00105

Measured 5d ago against content hash bc45fb1965c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-action scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/ui-action.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Kibana UI Action

Create custom UI Actions and Triggers that enable inter-plugin communication and contextual user interactions (e.g. clicking a table row to open a flyout, drilldowns from dashboard panels, context menu items). Ask the user for:

  1. Action or Trigger? Are they creating a new action, a new trigger, or both?
  2. Action ID (UPPER_SNAKE_CASE, e.g. MY_PLUGIN_OPEN_DETAIL_ACTION)
  3. Action display name (human-readable, e.g. "Open detail view")
  4. Trigger ID (if creating a trigger — e.g. MY_PLUGIN_ROW_CLICK_TRIGGER)
  5. Context type — what data does the action receive when executed? (e.g. a saved object ID, an embeddable, a row of data, coordinates)
  6. Where does it appear? Context menu, panel header, custom trigger point, or programmatic execution
  7. What does it do? Opens a flyout, navigates to a page, applies a filter, opens a modal, calls an API

Generation Steps

  1. Create the action/trigger files in public/actions/ and/or public/triggers/:

    public/
    ├── actions/
    │   ├── index.ts
    │   ├── my_action.ts            # Action implementation
    │   └── my_action_context.ts    # Context type definition
    ├── triggers/
    │   ├── index.ts
    │   └── my_trigger.ts           # Trigger definition
    
  2. For a Trigger:

    • Define a trigger ID constant
    • Create the trigger with id, title, description
    • Register via uiActions.registerTrigger() in setup()
  3. For an Action:

    • Define an action ID constant
    • Create an action class extending Action<Context> or using createAction()
    • Implement execute({ context }) — the logic that runs when triggered
    • Implement isCompatible({ context }) — whether the action should appear for this context
    • Implement getDisplayName(), getIconType() for menu rendering
    • Register via uiActions.registerAction() in setup()
    • Attach to one or more triggers via uiActions.attachAction(triggerId, actionId) in setup()

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 87 lines · 25 tokens per session scan A bc45fb1965c2

Subscribe to this mod's changes

ui-action is a command published in the GitHub repository ch-bas/kibana-plugin-helper (3 stars, last pushed 6mo ago), licensed MIT. It adds 25 tokens to every session and 1,052 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.