browser_nla
Browser Nla
Execute complex browser automation using natural language commands. The LLM interprets your instruction and automatically plans and executes multiple browser actions. Examples: 'search for shoes on Amazon', 'log in with test credentials', 'add the first item to cart'.
Usage Example
123456789101112
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.nla(
context_id=context_id,
command="value"
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
commandstringrequiredNatural language instruction for browser automation. The LLM will plan and execute multiple steps automatically. Examples: 'go to google.com and search for weather', 'click the first result', 'fill out the contact form with test data'
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}