dejo_run
Run browser tasks on any website: read values, fill forms, download files, or check pages; replay saved routes or explore new steps.
Instructions
Use for ANY website task: read a value, fill a form, download, check a page. A real browser with memory: a task done once is replayed later with no page reading.
Call with site, task and url. Known task: Dejo replays it and returns the answer. New task: Dejo opens the url and returns the page, one line per element, each with a ref (e12). Then call again with steps, one per line. They run in order. Dejo stops at the first step that fails and returns the page there.
Steps: go URL click T | fill T "text" | select T "option" | check T | press Enter (in a multi-line box, \n in the text starts a new line) read T as name (the value you will report) expect url "part" | expect text "words" | expect see T look words (show the page, these words first; look image: a picture) Also: back, hover T, wait T, upload T "file", tab N|close, dialog dismiss, screenshot [T], pdf, mouse click X Y, click T button=right, read table T, read fields '{"name": "css"}' T, read response "/api", wait response:/api, emulate device "iPhone 13"|timezone X, record video|trace. help (every other step) T is a ref, or role "name" (link "Travel"), text "...", label "...", css "...". Add first, last or nth 3 to mean that place in a list, not that item. Write click! (or fill! etc.) for a step that buys, pays, sends, deletes or submits.
Passed steps are kept. When all steps pass and one is a read (or a file downloads), the task is saved. done=true saves a task that reads nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"task": "<task>"
},
"name": "dejo_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | where to start | |
| done | No | ||
| site | Yes | domain or URL | |
| task | Yes | the job in plain words; the trail's name | |
| steps | No | step lines, see above | |
| profile | No | signed-in role to use, e.g. admin |