oculo

v0.4.1
io.github.xidik12/oculo Checked 4 days ago Published 9 months ago

AI-powered native browser with 12 MCP tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

page

Describe the current page in Oculo browser. Default: compact (~30-80 tokens). Use detail="a11y" for ref-tagged accessibility tree — interactive elements get [ref=e1],[ref=e2]... refs usable in act tool. Use detail="markdown" for full article content as clean markdown.

ParameterTypeDescription
detailstringcompact (default ~30-80 tokens), a11y (ref-tagged accessibility tree ~200-500 tokens), or markdown (article extraction via Readability)
includearrayWhat to include: "forms", "buttons", "links", "headings", "text", "images"
scopestringCSS selector to scope description to a section of the page
screenshotbooleanAttach a screenshot (default: false)
tabIdstringTarget a specific tab by ID (for parallel execution). Omit for active tab.

act

Perform an action in Oculo browser: click, navigate, scroll, press key, hover, type, login. Elements found by ref (from a11y snapshot), text, role, label, placeholder, or CSS selector. After click/navigate/back/forward/reload, returns fresh ref-tagged snapshot. Use newTab with background=true to open tabs without switching, then use tabId to run actions in parallel.

ParameterTypeDescription
action *stringAction to perform
amountnumberScroll amount in pixels
attributestringAttribute name for getAttribute action
autoSubmitbooleanAuto-submit after login (default: true)
backgroundbooleanFor newTab: open in background without switching (default: false). Returns tab ID for parallel execution.
clearbooleanClear existing content before typing (for type action). Works with both regular inputs and contenteditable fields.
contentstringFile content for writeFile action
cookiesarrayCookies array for importCookies action
directionstringScroll direction
expressionstringJavaScript expression for evaluate action
fromobjectDrag source: {x, y} or {text, selector}
keystringKey to press (Enter, Tab, Escape, etc.)
labelstringLabel text associated with the element
modifiersarrayModifier keys (Ctrl, Shift, Alt, Meta)
namestringAccessible name of the element
nthnumberWhich match to use (0-indexed, default: 0)
placeholderstringPlaceholder text of the input
proxyobjectProxy config for setProxy action: {type, host, port, username?, password?, bypass?}
refstringElement ref from a11y snapshot (e.g. "e5"). Preferred over text/selector — use page({detail:"a11y"}) first.
rolestringARIA role (button, link, textbox, etc.)
screenshotbooleanAttach screenshot after action
selectorstringCSS selector (fallback)
sitestringSite domain for login action (uses credential vault)
tabIdstringTarget a specific tab by ID (for parallel execution). Omit for active tab.
textstringVisible text on the element to interact with
toobjectDrag target: {x, y} or {text, selector}
urlstringURL for navigate action
valuestringValue for select action, file path for readFile/writeFile
xnumberX coordinate for clickAtPoint/drag
ynumberY coordinate for clickAtPoint/drag

fill

Fill form fields in Oculo browser by label, placeholder, or data-placeholder text. Handles text, select, checkbox, textarea, and contenteditable (DraftJS, ProseMirror). Use visible labels as keys.

ParameterTypeDescription
fields *objectObject mapping field label → value (e.g. {"Email": "hi@oculo.com"})
screenshotbooleanAttach screenshot after filling
submitSubmit form. true = first submit button, string = button text
tabIdstringTarget a specific tab by ID (for parallel execution). Omit for active tab.

read

Extract structured data from the page in Oculo browser (search results, tables, lists, articles).

ParameterTypeDescription
what *stringWhat to extract: "search results", "products", "table data", etc.
fieldsarraySpecific fields to extract
formatstringOutput format (default: text)
limitnumberMax items to return (default: 10)
scopestringCSS selector to narrow extraction scope
tabIdstringTarget a specific tab by ID (for parallel execution). Omit for active tab.

run

PREFERRED for any task with 2+ actions. Executes a multi-step pipeline in a SINGLE call — use this instead of multiple act/fill calls. Example — post on X: run({steps:[{act:{action:"navigate",url:"https://x.com/compose/post"}},{wait:{timeout:2000}},{act:{action:"type",text:"Hello world",role:"textbox"}},{act:{action:"click",text:"Post",role:"button"}}]}). Each step is an object with exactly ONE key: page, act, fill, read, wait, or if. Cached for replay.

ParameterTypeDescription
descriptionstringShort description for caching
returnAllbooleanReturn results from all steps (default: false)
stepsarrayArray of steps. Each step is an object with exactly ONE key: page, act, fill, read, wait, or if.
tabIdstringTarget a specific tab by ID (for parallel execution). Omit for active tab.
workflowstringReplay a cached workflow by ID

media

Generate images (Nano Banana 2 / DALL-E 3) or videos (Veo 3.1) via Oculo. Returns saved file path. Supports image-to-image editing with reference image.

ParameterTypeDescription
prompt *stringWhat to create
type *stringGenerate an image or video
durationnumberVideo duration: 4, 6, or 8 seconds
imagestringPath to reference image for image-to-image editing/transformation (Gemini only)
modelstringImage model: nano-banana-2 (default), nano-banana-pro, nano-banana
providerstringOverride: gemini, openai, stability
sizestringImage: 1024x1024, 2K, 4K. Video: 16:9, 9:16
stylestringnatural, vivid, cinematic, anime

shell

Execute a shell command (ls, npm, git, node, python, etc.) via Oculo and return stdout+stderr. Non-interactive only.

ParameterTypeDescription
command *stringThe shell command to execute
timeoutnumberTimeout in milliseconds (default: 30000, max: 120000)

webmcp_list

Discover WebMCP tools registered by the current page via navigator.modelContext.registerTool() or <form toolname="..."> elements. Returns list of available page-declared tools.

webmcp_call

Call a WebMCP tool registered by the current page. Use webmcp_list first to discover available tools.

ParameterTypeDescription
name *stringTool name to call (from webmcp_list)
argsobjectArguments to pass to the tool

research

Deep web research on a topic. Opens multiple tabs, reads pages, synthesizes findings.

ParameterTypeDescription
topic *stringResearch topic or question
depthnumberResearch depth (1-3). Default: 2
tabIdstringTarget tab ID

tabs

List all open browser tabs with their URLs and titles.

ParameterTypeDescription
tabIdstringTarget tab ID

preview

Pre-fetch a URL without navigating. Returns page description without leaving current page.

ParameterTypeDescription
url *stringURL to preview
tabIdstringTarget tab ID

translate

Translate page content or specific text to another language.

ParameterTypeDescription
to *stringTarget language code (e.g., "en", "es", "zh")
tabIdstringTarget tab ID
textstringText to translate (omit for full page)

lens

Visual analysis of the current page via screenshot. Describe what you see or answer questions about the page visually.

ParameterTypeDescription
question *stringWhat to analyze or look for in the page
tabIdstringTarget tab ID

abort

Cancel a pending tool call by callId, or pass callId="all" to cancel everything.

ParameterTypeDescription
callId *stringThe call ID to cancel, or "all" to cancel all pending calls

status

List all pending tool calls with their callId, toolName, and elapsed time.