Plans instructions based on UI context and user input
The current UI context
User input/command
Optional
Optional agent configuration
Optional conversation history
The full agent response containing both reply and instructions
const ui = ctx.describe()const response = await plan(ui, "click save button", config)for (const instruction of response.instructions || []) { ctx.act(instruction)} Copy
const ui = ctx.describe()const response = await plan(ui, "click save button", config)for (const instruction of response.instructions || []) { ctx.act(instruction)}
Plans instructions based on UI context and user input