browser_type
Type text on a ready sandbox's page: into the element with ref (from browser_snapshot), which is clicked first, or into the focused one. With submit, it presses Enter after, such as to search. It answers with the page's URL and title.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sandbox_id": "<sandbox_id>",
"text": "<text>"
},
"name": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The element to type into, by its ref in the page's latest snapshot: it's clicked and focused first. The focused element when absent. | |
| text | Yes | The text to type. | |
| submit | No | Press Enter after the text, such as to submit a search. | |
| sandbox_id | Yes | The sandbox, `sbx_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page's URL. | |
| title | Yes | The page's title. | |
| snapshot | No | The page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to. |