🧪 Skills
Skill Demo
Open a browser window from user-provided URL input. Use when users ask to open a website, launch a link quickly, or validate browser-launch automation in loc...
v0.0.1
Description
name: skill-demo description: Open a browser window from user-provided URL input. Use when users ask to open a website, launch a link quickly, or validate browser-launch automation in local development.
Skill Demo
Open a local browser window with a normalized URL.
This skill is designed for deterministic browser-launch behavior in local workflows.
Steps
- Read the user input as a URL candidate.
- Normalize whitespace and trim both ends.
- If the URL has no scheme, prepend
https://. - Allow only
httpandhttps. - If input is empty, use default URL:
https://www.openclaw.ai
- Open a new browser window.
- Return one line of status.
Response Rules
- Return a single plain-text status line.
- Do not include markdown wrappers.
- On success:
Opened browser window: <normalized_url>
- If the browser reports blocked open:
Browser open was requested but may have been blocked. URL: <normalized_url>
- On invalid URL/scheme:
- return an explicit error message.
Test Cases
Input:
openclaw.ai
Output:
Opened browser window: https://openclaw.ai
Input:
https://docs.openclaw.ai
Output:
Opened browser window: https://docs.openclaw.ai
Input:
``
Output:
Opened browser window: https://www.openclaw.ai
Integration Notes
- Use this skill for quick browser-open automation checks.
- Keep URL normalization deterministic so tests can assert exact output text.
- Keep scheme restrictions to avoid unsafe local protocol launches.
Output
Use the format:
Opened browser window: <normalized_url>
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!