Browser control

From agent0ai/space-agent · View interactive version

Browser control is an AI agent skill from the GitHub repository agent0ai/space-agent. Inspect, navigate, and interact with open browser surfaces through space.browser

How to use this skill

Skill file

Use this skill once at least one browser surface is open. browser-manager handles stand-alone window open or close work.

transient

workflow

main helpers

runtime notes

examples

Checking browser 1 now

_javascript

return await space.browser.state(1)

Reading refs from browser 1 now

_javascript

return await space.browser.content(1, {

selectors: ["main", "article"]

})

Reading one scoped region now

_javascript

return await space.browser.dom(1, {

selector: "[role='tab'], .nav-link, .tab, button"

})

Inspecting one link target now

_javascript

return await space.browser.detail(1, 79)

Opting into fuller link-heavy output now

_javascript

return await space.browser.content(1, {

includeLinkUrls: true,

includeLabelQuotes: true,

includeListMarkers: true

})

Opening the first referenced result now

_javascript

const content = await space.browser.content(1)

console.log(content.document)

return await space.browser.click(1, 79)

Typing into the active search box now

_javascript

const content = await space.browser.content(1)

console.log(content.document)

return await space.browser.typeSubmit(1, 79, "Space Agent")

Running a last-resort page script now

_javascript

return await space.browser.evaluate(1, `

const target = [...document.querySelectorAll("*")]

.find((element) => element.textContent.trim() === "Update")

if (!target) {

"no update tab found"

} else {

target.click()

"clicked: " + target.tagName

}

`)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.