Skip to content

Intent

A description of a change that someone wants to make: the id of a command, and the arguments with which to run it. The app turns an intent into a change, after it has gone through the steps that are described in the guide.

A plugin does not write an intent by hand. It obtains one from the intent(args) function of a command, for example ctx.rows.modify.intent({ id, title }), or from the set and clear functions of a facet.

args: unknown;

The arguments of the command. Their shape depends on the command.


command: string;

The id of the command to run, written <plugin id>/<name>.