browser_submit_form

Browser Submit Form

Submit the currently focused form by simulating an Enter key press. Equivalent to pressing Enter in a form field. Useful for search boxes and forms that submit on Enter. The form must have a focused input element.

Usage Example

CURL

curl -X POST \
 -H "Authorization: Bearer <token>" \
 -H "Content-Type: application/json" \
 -d '{
"context\_id": "ctx\_000001"
}' \
http://localhost:8080/api/execute/browser\_submit\_form

Python SDK

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.submit\_form(
        context\_id=context\_id
    )

Node.js SDK

import { OwlBrowser } from '@olib-ai/owl-browser-sdk';

// Async usage
const ctx = await browser.createContext();
const contextId = ctx.context\_id;
await browser.submitForm({
    context\_id: contextId
});

Parameters

Required

context\_id string required

The unique identifier of the browser context (e.g., 'ctx_000001')

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}