# browser_keyboard_combo

## Browser Keyboard Combo

Press a keyboard combination with modifiers. Supports Ctrl, Shift, Alt, Meta/Cmd modifiers. Examples: 'Ctrl+A' (select all), 'Ctrl+C' (copy), 'Ctrl+V' (paste), 'Ctrl+Shift+N' (new window).

## Usage Example

### Python SDK

```python
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.keyboard_combo(
        context_id=context_id,
        combo="value"
    )
```

### Node.js SDK

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

// Async usage
const ctx = await browser.createContext();
const contextId = ctx.context_id;
await browser.keyboardCombo({
    context_id: contextId,
    combo: 'value'
});
```

### CURL

```bash
curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "context_id": "ctx_000001",
    "combo": "<combo>"
}' \
  http://localhost:8080/api/execute/browser_keyboard_combo
```

## Parameters

### Required

- `context_id` (string, required): The unique identifier of the browser context (e.g., 'ctx_000001')
- `combo` (string, required): Key combination string using modifiers and keys. Supports Ctrl, Shift, Alt, Meta/Cmd. Examples: 'Ctrl+A', 'Ctrl+Shift+N', 'Meta+V', 'Shift+Enter'

## Response

Returns a JSON object with the operation result.

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