Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

PluginTool

The handle of a registered tool, which sets what it shows.

readonly id: string


measurement: object

The measurement box’s label and value, such as { label: "Distance", value: "1.2 m" }.

readonly label: string

readonly value: string


reference: Point3d | null

Where inference starts from, such as the first click of a line, in the coordinates of the context being edited; null for none. Points then snap along the axes from it, and the arrow keys lock those axes.


status: string

The status bar’s instruction, such as "Click a vertex to move it.".

select(): void

Selects the tool, as choosing it from the Extensions menu does, such as from a panel’s button that starts placing what the panel set up. The tool changes once the plugin’s code for this frame has run. Listeners, isEnabled, isChecked and draws that only read can’t select tools. Needs the "toolSelection" feature.

void