Skip to main content

bap plan

Observe the current page and get AI-suggested actions for achieving a goal. Useful for autonomous agents that need to decide what to do next.

Usage

string
required
A natural language description of what you want to accomplish.
number
default:"10"
Maximum number of suggestions to return.

Output

Each suggestion includes:
  • Description — What the action does
  • Method — The BAP protocol method to call
  • Relevance — How relevant the action is to the stated goal (0-100%)
bap plan analyzes the current page state and matches interactive elements against your goal. It does not execute any actions — it only suggests them.

JSON Output

With --format=json, the output includes full structured data:
Use bap plan as a decision-making step in autonomous agent loops. It observes the page and ranks possible actions by relevance to your goal, so the agent can pick the best next step.