Browser Interaction endpoints let you drive a managed Chromium instance exposed through the Hoody Browser container service. Use these operations to navigate to URLs, run arbitrary JavaScript against the active tab, extract structured page content, generate PDFs, and capture screenshots. All requests are served by the container’s browser service through the Hoody proxy.
Unique identifier for the browser instance (0-based index)
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
url
query
string
No
The URL to navigate to
tabId
query
integer
No
The ID of the tab to interact with
active
query
boolean
No (default: true)
Make the tab active (focused) after navigation
onlyIfNotExists
query
boolean
No (default: false)
Only create a new tab if no tab with the same URL exists
ignoreGetParameters
query
boolean
No (default: false)
Ignore query parameters when checking for existing URL
Opens a new tab (or uses an existing one) and navigates to a URL using the POST method. Identical to the GET variant but accepts the navigation options in a JSON body, which is convenient when the URL or other parameters are long or contain characters that are awkward to encode into a query string.
Unique identifier for the browser instance (0-based index)
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Executes a JavaScript snippet in the context of the last active tab. The script parameter can be passed as a URL-encoded string or as a base64-encoded payload.
Unique identifier for the browser instance (0-based index)
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
script
query
string
Yes
JavaScript code to execute (can be base64 encoded)
Executes a JavaScript snippet provided in the request body. Use this variant when the script is large or contains characters that are awkward to place in a URL. The body can be sent as either application/json (with a script field) or as text/plain with the raw JavaScript code as the body.
Unique identifier for the browser instance (0-based index)
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Returns the full HTML content of the active page, equivalent to document.documentElement.outerHTML. Useful for scraping, diffing, or feeding into downstream text processing.
Unique identifier for the browser instance (0-based index)
tabId
query
integer
No
The ID of the tab to interact with
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Returns the visible text content of the page, equivalent to document.body.innerText. Useful for summarisation, search-indexing, or feeding into an LLM context window.
Unique identifier for the browser instance (0-based index)
tabId
query
integer
No
The ID of the tab to interact with
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Generates a PDF of the current page. Optionally navigate to a URL first, then export. Supports paper format, orientation, margins, and inclusion of background graphics.
Unique identifier for the browser instance (0-based index)
tabId
query
integer
No
The ID of the tab to interact with
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
url
query
string
No
Optional URL to navigate to before generating the PDF
Unique identifier for the browser instance (0-based index)
start
query
boolean
No (default: true)
Controls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
url
query
string
No
The URL to navigate to
tabId
query
integer
No
The ID of the tab to interact with
onlyIfNotExists
query
boolean
No (default: false)
Only create a new tab if no tab with the same URL exists
ignoreGetParameters
query
boolean
No (default: false)
Ignore query strings when checking for existing URL