Agent workflow examples
Examples below show MCP tool names and argument objects. They are not shell commands or a new Dea scripting language. In an MCP client, call each tool with its arguments. Use values observed in your session wherever a placeholder is named.
Read a page#
After selecting the intended workspace:
{"tool":"open_tab","arguments":{"url":"https://example.com","name":"research"}}{"tool":"get_page_text","arguments":{"tab":"research"}}Check the returned page before reporting its contents. If it is an error page or login screen, resolve that instead of assuming the intended content loaded.
Use an observed reference#
Call read_page on the intended tab. Suppose its current outline shows [12] button Continue:
{"tool":"click","arguments":{"tab":"research","selector":"@12"}}The number is illustrative, not a universal selector. Use the actual reference from your last read of that tab.
Fill without submitting#
After observing labels Name and Email on your test form:
{"tool":"fill_form","arguments":{"fields":{"Name":"Alex Example","Email":"alex@example.com"}}}Inspect the filled values or read the form again. A separate authorized click is needed to submit it.
Capture a response that may arrive quickly#
In the intended tab, enable capture and record the current event sequence before the authorized action:
{"tool":"arm_network","arguments":{"on":true}}{"tool":"get_events","arguments":{"limit":1}}Save its latest_seq, then perform the action using an observed target. Call wait_for_event with kind: "network", the observed request path as url_contains, and that sequence as since_seq. This includes a response that arrived between the action and your wait.
Inspect the response or visible confirmation. Matching a URL alone is not proof that the application accepted the operation.
Repeat a known test-form fill#
On a local test fixture with an observed Name field, this illustrates row substitution without submitting any records:
{
"tool": "batch",
"arguments": {
"steps": [
{"tool":"type_text","args":{"label":"Name","text":"{{name}}"}},
{"tool":"read_page"}
],
"rows": [{"name":"Alex Example"},{"name":"Sam Example"}]
}
}Both rows fill the same field; the final read runs after the last row. A real multi-record workflow needs its observed navigation, authorized save, and completion conditions added explicitly.
Check a local app's initial requests#
Open a blank named tab, arm capture in it, then navigate:
{"tool":"open_tab","arguments":{"name":"app-test"}}{"tool":"arm_network","arguments":{"tab":"app-test","on":true}}{"tool":"navigate","arguments":{"tab":"app-test","url":"http://localhost:3000"}}{"tool":"check_page","arguments":{"tab":"app-test"}}Replace the URL with the running server's actual address. Inspect returned errors, then use get_network_bundle to investigate relevant requests and bodies.
Compare two widths#
Open two tabs with the same app URL and names app-wide and app-narrow. Then:
{"tool":"set_viewport","arguments":{"tab":"app-wide","preset":"desktop"}}{"tool":"set_viewport","arguments":{"tab":"app-narrow","preset":"mobile"}}{"tool":"set_split_view","arguments":{"tabs":["app-wide","app-narrow"]}}Check overflow, reachable controls, focus, and the affected user flow at each width. Use screenshots when visual evidence is needed.