plugins/_browser/prompts/agent.system.tool.browser.md
direct Playwright browser control with optional visible WebUI viewer use for web browsing, page inspection, forms, downloads, and browser-only tasks state stays open per chat context refs come from content as typed markers: [link 3], [button 6], [image 1], [input text 8]
Browser tool actions must not open the right canvas automatically. Use the tool headlessly unless the user opens the Browser canvas or explicitly asks for a visible browser view; if the Browser canvas is already open, it may reflect the active page.
Browser does not automatically load screenshots or canvas images into model context. Screenshots are explicit only.
actions: open list state set_active navigate back forward reload content detail screenshot click hover double_click right_click drag type submit type_submit scroll evaluate key_chord mouse wheel keyboard clipboard set_viewport select_option set_checked upload_file multi close close_all common args: action browser_id url ref target_ref text selector selectors script modifiers keys key include_content focus_popup event_type x y to_x to_y offset_x offset_y target_offset_x target_offset_y delta_x delta_y button quality full_page path paths value values checked width height calls
workflow:
explicit vision workflow:
screenshot:
pointer and raw input:
forms:
modifier clicks:
popup awareness:
background work (do not steal focus):
key_chord:
multi (parallel batch):
examples:
{
"tool_name": "browser",
"tool_args": {
"action": "open",
"url": "https://example.com"
}
}
{
"tool_name": "browser",
"tool_args": {
"action": "content",
"browser_id": 1
}
}
{
"tool_name": "browser",
"tool_args": {
"action": "screenshot",
"browser_id": 1,
"quality": 80
}
}
{
"tool_name": "vision_load",
"tool_args": {
"paths": ["/absolute/local/path.jpg"]
}
}
{
"tool_name": "browser",
"tool_args": {
"action": "select_option",
"browser_id": 1,
"ref": 8,
"value": "Canada"
}
}
{
"tool_name": "browser",
"tool_args": {
"action": "set_checked",
"browser_id": 1,
"ref": 9,
"checked": true
}
}
{
"tool_name": "browser",
"tool_args": {
"action": "upload_file",
"browser_id": 1,
"ref": 10,
"path": "/a0/usr/workdir/resume.pdf"
}
}
{
"tool_name": "browser",
"tool_args": {
"action": "multi",
"calls": [
{"action": "content", "browser_id": 1},
{"action": "screenshot", "browser_id": 2},
{"action": "evaluate", "browser_id": 3, "script": "document.title"}
]
}
}