The AI's tools
An AI connected to Allgreen works through tools: each one does a single thing. This page lists them all, so you know exactly what the AI can and cannot do.
The desktop app gives 13 tools; the command line (allgreen mcp) gives 9 of them.
| Tool | Desktop app | Command line |
|---|---|---|
list_projects |
Yes | Yes |
create_project |
Yes | No |
add_project |
Yes | No |
list_plans |
Yes | Yes |
read_plan |
Yes | Yes |
save_plan |
Yes | Yes |
run_plans |
Yes | Yes |
stop_run |
Yes | No |
get_run |
Yes | Yes |
list_runs |
Yes | Yes |
get_image |
Yes | Yes |
export_report |
Yes | Yes |
show_in_app |
Yes | No |
Choosing the project
Section titled “Choosing the project”Every tool that works on one project takes an optional project: the folder of the project, as list_projects gives it. The AI can leave it out when there is only one project. A folder that is not one of the allowed projects is refused, and the refusal does not repeat the folder’s path.
Projects
Section titled “Projects”list_projects
Section titled “list_projects”Lists the projects the AI may use: the folder of each (from ~, your home folder, when it is inside it), its name and its site address. In the desktop app, it also says which project the window shows now.
- Needs: nothing. On the command line, it can take one project to list only that one.
create_project
Section titled “create_project”Desktop app only. Creates an Allgreen project in a folder, with a first example plan, and adds it to the app’s list. The folder is made if it does not exist; the tool is refused if the folder already holds a project. The window stays where it is. A folder outside your home folder, or in a hidden folder (one whose name starts with a dot, such as .ssh), is refused with outsideHome: the AI is told to ask you to open that folder in the app.
- Needs: the project folder (a full path, or one starting with
~; only in your home folder, outside hidden folders), the project’s name, and the site address to test (for examplehttps://example.com). - Optional: the language of the example plan.
add_project
Section titled “add_project”Desktop app only. Adds a folder that already holds an Allgreen project to the app’s list. As with create_project, a folder outside your home folder or in a hidden folder is refused with outsideHome.
- Needs: the project folder (a full path, or one starting with
~; only in your home folder, outside hidden folders).
list_plans
Section titled “list_plans”Describes a project: its site address, browsers, devices and sign-in plan; its plans (file name, name, number of steps, and why a plan file is invalid, if one is); and its secrets: each name, and whether a value is set. Secret values are never shown.
- Needs: nothing but the project.
read_plan
Section titled “read_plan”Reads one plan: its steps, a version stamp, and each step as an English sentence.
- Needs: the plan’s slug (its file name, from
list_plans).
save_plan
Section titled “save_plan”Creates a plan, or replaces one with a new version of it.
- To create a plan: the AI gives a new slug and the plan. It is refused if a plan already has that slug.
- To change a plan: the AI also gives the version it read. It is refused if the plan changed since then, for example because you edited it in the meantime. The AI then reads the plan again and redoes its change, so your edits are never lost.
The plan is checked like one you write in the editor. A secret is written as {{NAME}} in a step, never in clear. In the desktop app, the window showing the project reloads.
run_plans
Section titled “run_plans”Starts a run in the background and answers at once with the run’s id. The AI then follows it with get_run.
- Optional: the plans to run, by slug. Without it, all the plans run. The project’s sign-in plan always runs too.
- Optional: everyStep, to take a screenshot after each step, for a report to send. Slower.
Each plan runs on every browser and device of the project. One run at a time per project: while one is going, a new one is refused. A run does not start when a secret has no value, a browser is missing or a file to upload is missing; the AI is then told what to ask you, such as setting the secret on the Secrets page.
stop_run
Section titled “stop_run”Desktop app only. Stops a run that is going. It ends as interrupted.
- Needs: the run id.
get_run
Section titled “get_run”Gives a run’s state: still running (with the seconds since it started), failed to start (and why), interrupted, or done. When done: the summary, and for each plan on each browser and device, its result, its screenshots and, if it failed, the step that failed and why. The places of the failure’s screenshot, video and trace are given too.
- Needs: the run id.
list_runs
Section titled “list_runs”Lists the 20 most recent runs, most recent first: their id, start time, state and summary.
- Needs: nothing but the project.
get_image
Section titled “get_image”Gives the AI one screenshot of a finished run, as an image it can look at: a screenshot taken by a “Take a screenshot” step or after each step, or the screenshot of a failure.
- Needs: the run id and the screenshot’s path, as
get_rungave it.
Only the screenshots the report names can be read. Videos and traces are not given to the AI: it tells you where they are, for you to open.
export_report
Section titled “export_report”Writes the report of a finished run, as a web page or as a PDF, and gives its path. The report is written in the run’s own folder, and its content is not given to the AI: you open the file.
- Needs: the run id and the format:
htmlorpdf. A PDF needs Chromium to be installed. - Optional: failuresOnly, to show step by step only the plans that failed. The others stay in the summary, with their result.
Secrets never appear in the report. See Share a report.
The app window
Section titled “The app window”show_in_app
Section titled “show_in_app”Desktop app only. Shows you a project in the Allgreen window and brings the window to the front: the project’s plans, one plan, or one run’s report.
- Optional: a plan slug, or a run id (not both). Without either, it shows the project’s plans.
It answers once the window has acted. If you are on a page with unsaved changes or a run going, the window stays where it is, and the AI is told to tell you where to find the page instead.