browser_ai_type
Browser Ai Type
Type text into an element described in natural language using AI vision. The AI finds the input field matching your description and enters the text. Example: 'email field', 'search box'.
Usage Example
12345678910111213
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.ai_type(
context_id=context_id,
description="value",
text="value"
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
descriptionstringrequiredNatural language description of the input element (e.g., 'search box', 'email input')
textstringrequiredText to type into the input element
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}