- crates/mcp: stdio MCP client (initialize, tools/list with paging, tools/call), mcp.json - apps/extension: MV3 extension with pinned ID; tabs/open/snapshot(+diff)/click/fill/press/ scroll/extract/screenshot/wait_for/batch via chrome.scripting, tab group, glide cursor - crates/native-host: length-prefixed stdio relay to the app's unix socket; the app binary doubles as the host; manifests registered for Chrome, Brave, Edge, Arc, Vivaldi, Chromium - helper pdf: real Letter/A4 pages, multi-page - skills: pdf, documents, mac-apps, research, browser - .env.example Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
name, description
| name | description |
|---|---|
| Make a good-looking PDF (one-pagers, reports, handouts, letters) from HTML, and read PDFs. |
Making PDFs
- Write the document as one self-contained HTML file in
tmp/(inline CSS, no external fonts unless you download them intotmp/). Design for paper:- Letter is 612 × 792 px, A4 is 595 × 842 px (CSS px = PDF points). Set
html,body{margin:0}and give the body its own padding (36–54 px). - System fonts that look good:
-apple-system,"New York",Georgia,"Avenir Next","SF Mono"for code. 10–11.5 pt body text, 1.4 line height. - "One page" means it must fit 792 px (Letter) of content height: check, then trim.
- Letter is 612 × 792 px, A4 is 595 × 842 px (CSS px = PDF points). Set
- Render:
openclicky-helper pdf tmp/doc.html output/Name.pdf letter(ora4). It prints the page count; if it isn't what you wanted, change the HTML and render again. - Check it:
openclicky-helper text output/Name.pdfto read it back, andqlmanage -t -s 1200 -o tmp output/Name.pdfthenview_image tmp/Name.pdf.pngto look at it. - Put it where they asked with
device_save_file(never overwrites), and list the saved path under ARTIFACTS.
Reading a PDF: device_read_file (from their Mac) or openclicky-helper text file.pdf.