Dom Apis
Dom Apis seamlessly integrates external APIs into your responses, enhancing data access and providing dynamic, up-to-date information.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dom-apis npx -- -y @trustedskills/dom-apis
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dom-apis": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dom-apis"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with and manipulate Document Object Model (DOM) APIs. It enables the agent to dynamically modify web page content, respond to user interactions within a browser environment, and automate tasks involving webpage elements. Specifically, it provides access to functions for selecting, creating, modifying, and deleting DOM nodes.
When to use it
- Automated Web Scraping: Extract specific data from websites by targeting elements based on their attributes or content.
- Browser Automation: Simulate user actions like clicking buttons, filling forms, and navigating between pages.
- Dynamic Content Generation: Create and insert new HTML elements into a webpage programmatically.
- Webpage Testing: Automate testing procedures that involve interacting with web page components.
Key capabilities
- DOM Node Selection (e.g., by ID, class name, tag name)
- Element Creation & Insertion
- Attribute Modification
- Content Updates
- Event Handling (implied through interaction)
Example prompts
- "Select the element with the ID 'submit-button' and click it."
- "Create a new paragraph element containing the text 'Hello, world!' and append it to the document body."
- “Change the text content of the element with class ‘title’ to ‘New Title’.”
Tips & gotchas
- Requires access to a browser environment for execution.
- Understanding basic HTML structure is helpful for effective use.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.