**Never trust targetUrl alone â always verify with screenshot first!**
Install
npx skillscat add mmcmedia/openclaw-agents/skills-browser-pdf Install via the SkillsCat registry.
About this skill
This skill generates PDF files from web pages by capturing specific browser tabs. It prevents errors caused by multiple open tabs by requiring a visual screenshot verification before rendering. Developers should use this skill when an agent needs to convert a URL to a PDF while ensuring the content matches the intended page.
SKILL.md
Browser PDF Generation Skill
When to Use
Generating PDFs from web pages using the browser tool.
⚠️ Critical Lesson (Jan 30, 2026)
browser pdf with targetUrl may capture the WRONG tab if multiple tabs are open.
Correct Process
- ALWAYS open the URL first with
browser open→ savetargetId - Screenshot to VERIFY you're on the correct page
- Generate PDF using the specific
targetId(not just targetUrl) - Send the file
Example
1. browser open profile=clawd targetUrl=file:///path/to/report.html → get targetId
2. browser screenshot targetId=<id> → verify content visually
3. browser pdf targetId=<id> → generate from verified tab
4. message send with filePathNever trust targetUrl alone — always verify with screenshot first!