{ "name": "page-edit", "description": "Safe in-page editing: navigate to Wikipedia, resolve the search box from an observe snapshot by role, type {{text}} into it WITHOUT submitting, then press Escape. Demonstrates observe->find->type/press_key editing while the consequential submit stays gated.", "engine": "chromium", "variables": { "text": "text to type into the search box, e.g. 'dracull browser'" }, "steps": [ { "name": "open the editing tab", "tool": "tab_open", "args": { "url": "https://en.wikipedia.org/" }, "expect": { "data.url": "wikipedia.org" }, "save": { "edit_tab": "tab_id" } }, { "name": "snapshot the interactive elements", "tool": "observe", "save": { "snapshot_id": "data.snapshot_id" } }, { "name": "type into the search box (no submit — submit needs user approval)", "tool": "type", "find": { "role": "textbox", "text": "wikipedia" }, "args": { "text": "{{text}}", "submit": false }, "save": { "typed_text": "data.text" } }, { "name": "dismiss the suggestion dropdown", "tool": "press_key", "args": { "key": "Escape" } }, { "name": "verify the box holds the typed text", "tool": "observe", "save": { "final_snapshot": "data.snapshot_id" } }, { "name": "screenshot the edited page", "tool": "screenshot", "save": { "screenshot": "data.path" } }, { "name": "close the editing tab", "tool": "tab_close", "args": { "tab_id": "{{edit_tab}}" } } ] }