Skip to content
Back to skills

068 Mshtools Browser Input D8cb8ec4

ASecurity

Text entry automation for form fields including text inputs, textareas, and other data entry elements.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsjavascriptjavanode

Works with

  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 068-mshtools-browser_input_d8cb8ec4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 068 Mshtools Browser Input D8cb8ec4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 068 Mshtools Browser Input D8cb8ec4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-068-mshtools-browser-input-d8cb8ec4/badge)](https://www.skillsdirectory.com/skills/tools-only-068-mshtools-browser-input-d8cb8ec4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Tool Specification: mshtools-browser_input

## Overview
Text entry automation for form fields including text inputs, textareas, and other data entry elements.

## JSON Schema
```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL of page with form"
    },
    "citation_id": {
      "type": "integer",
      "description": "Citation ID for existing tab"
    },
    "element_index": {
      "type": "integer",
      "description": "Zero-based index of input element"
    },
    "content": {
      "type": "string",
      "description": "Text to enter into the field"
    }
  },
  "required": ["element_index", "content"]
}
```

## Streaming Mechanism
- **Input Sequence**:
  1. Focus element (click)
  2. Clear existing content (Ctrl+A, Delete)
  3. Type content character by character
  4. Blur element (unfocus)
  5. Wait for validation/JS events
  6. Return updated page state
- **Typing Simulation**: Realistic delays between keystrokes to trigger JS events
- **Special Keys**: Supports \n for Enter, \t for Tab

## Integration Architecture

### CDP Input Domain
```javascript
// Focus
DOM.focus({ nodeId: elementId })

// Clear
Input.dispatchKeyEvent({ type: 'keyDown', key: 'Control' })
Input.dispatchKeyEvent({ type: 'keyDown', key: 'a' })
Input.dispatchKeyEvent({ type: 'keyUp', key: 'a' })
Input.dispatchKeyEvent({ type: 'keyUp', key: 'Control' })

// Type
for (const char of content) {
  Input.insertText({ text: char })
  await delay(10)  // Simulate human typing
}
```

## Supported Input Types
- `<input type="text">`
- `<input type="password">`
- `<input type="email">`
- `<input type="search">`
- `<textarea>`
- `<input type="number">` (formats as string)
- Content-editable divs

## Usage Patterns

### Login Form
```
browser_visit(url="https://login.example.com")
browser_input(citation_id=1, element_index=0, content="username")
browser_input(citation_id=1, element_index=1, content="password")
browser_click(citation_id=1, element_index=2)  # Login button
```

### Search Query
```
browser_visit(url="https://search.example.com")
browser_input(citation_id=1, element_index=0, content="query term")
browser_click(citation_id=1, element_index=1)  # Search button
```

### Multi-Field Form
```
browser_input(citation_id=1, element_index=0, content="John")
browser_input(citation_id=1, element_index=1, content="Doe")
browser_input(citation_id=1, element_index=2, content="john@example.com")
```

## Error Handling
- **Non-Input Element**: Error if element not input/textarea
- **Read-Only**: Error if field disabled or read-only
- **Validation Failure**: May return page with error messages visible

## Related Tools
- `browser_click`: Submit form or move between fields
- `browser_find`: Locate input fields by label text

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…