Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jo-inc/camofox-browser/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
RequiresuserId in the request body to identify the session owner.
Parameters
The tab ID returned from
POST /tabsThe user ID that owns this tab’s session
The key to press. Supports all Playwright keyboard keys:
- Character keys:
"a","B","1","#" - Special keys:
"Enter","Tab","Escape","Backspace","Delete" - Arrow keys:
"ArrowUp","ArrowDown","ArrowLeft","ArrowRight" - Modifier keys:
"Shift","Control","Alt","Meta" - Function keys:
"F1"through"F12" - Navigation:
"Home","End","PageUp","PageDown"
Response
true if the key was pressed successfullyExample
Common use cases
Submit a form
Navigate with keyboard
Scroll with arrow keys
Error responses
| Status | Error | Cause |
|---|---|---|
| 400 | userId is required | Missing userId in request body |
| 400 | key is required | Missing key in request body |
| 404 | Tab not found | Tab ID doesn’t exist or doesn’t belong to this user |
| 500 | Internal server error | Playwright error, page closed, or timeout |
Notes
- Key names are case-sensitive: use
"Enter"not"enter" - Modifier keys can be combined with
+:"Control+c","Shift+Tab" - Key press happens wherever focus currently is on the page
- Use
/typeendpoint instead for typing text strings - For pressing Enter after typing, use the
pressEnterparameter in/type
Related endpoints
- Type text - Type text into an element
- Click element - Click to focus an element first