pencil-mcp-get-screenshot
Skill0 starsChanged 10 months agoApache-2.0View on GitHub
Get node visual screenshot. Visual Verification. Use to capture screenshots after operations to verify if the design meets expectations.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- pencil-design-from-stitch-htmlSkill
- pencil-mcp-batch-designSkill
- pencil-mcp-batch-getSkill
- pencil-mcp-find-empty-space-on-canvasSkill
- pencil-mcp-get-editor-stateSkill
- pencil-mcp-get-guidelinesSkill
- pencil-mcp-get-style-guideSkill
- pencil-mcp-get-style-guide-tagsSkill
- pencil-mcp-get-variablesSkill
- pencil-mcp-open-documentSkill
- pencil-mcp-replace-all-matching-propertiesSkill
- pencil-mcp-search-all-unique-propertiesSkill
- pencil-mcp-set-variablesSkill
- pencil-mcp-snapshot-layoutSkill
- pencil-skill-creatorSkill
- pencilSkill
- pencil-ui-designerSkill
- pencil-ui-design-spec-generatorSkill
- pencil-ui-design-system-antdSkill
- pencil-ui-design-system-bootstrapSkill
- pencil-ui-design-system-echartsSkill
- pencil-ui-design-system-elementSkill
- pencil-ui-design-system-layuiSkill
- pencil-ui-design-system-uchartsSkill
- pencil-ui-design-system-uviewproSkill
- pencil-ui-design-system-uviewSkill
- pencil-ui-design-system-vantSkill
- pencil-{category}-{scenario}Skill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
If your client namespaces MCP tools, it may appear as mcp__pencil__get_screenshot.
- Distinctive: line 52
Check for: Alignment, Spacing, Text Truncation, Color correctness.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tools
This skill is designed to call the Pencil MCP tool:
get_screenshot
If your client namespaces MCP tools, it may appear as mcp__pencil__get_screenshot.
When to use this skill
Intent Recognition (CRITICAL)
Even if a trigger phrase matches, you must verify the user's intent:
- Is the user explicitly asking to use "Pencil"?
- Is the current conversation context clearly about "Pencil" design tasks?
If the answer is NO, do NOT use this skill. (e.g., "Get screenshot" might refer to a browser screenshot via Puppeteer).
CRITICAL PREREQUISITE: You must ONLY use this skill when the user EXPLICITLY mentions "Pencil".
ALWAYS use this skill when:
- You have completed a design operation (
batch_design) and need to verify the result in Pencil. - The user asks to "Show me" or "Take a look" at the Pencil design.
- You need to check for visual bugs (text overflow, alignment, contrast).
- This is the Verify step in the Design Loop.
Trigger phrases include:
- "Get Pencil screenshot" (获取 Pencil 截图)
- "Pencil visual check" (Pencil 视觉检查)
- "Verify Pencil design" (验证 Pencil 设计)
- "Show me the button in Pencil" (给我看 Pencil 里的那个按钮)
Input Parameters
filePath(string, optional): Path to access a specific.penfile.nodeId(string, required): The ID of the node to screenshot.
How to use this skill
- Identify Target: Get the
nodeIdof the element you just modified or created. - Call Tool:
get_screenshot(nodeId='...'). - Analyze Result:
- The tool returns an image URL or data.
- CRITICAL: You must "look" at the image (if capabilities allow) or present it to the user for feedback.
- Check for: Alignment, Spacing, Text Truncation, Color correctness.
Examples
1. Simple: Node Screenshot
Get a visual verification of a single element. See 1-node-screenshot.json.
2. Medium: Frame Verification
Screenshot a whole frame to check layout and composition. See 2-frame-verification.json.
3. Complex: Design System Check
Screenshot a component master to ensure the design system update looks correct. See 3-component-check.json.
Keywords
English keywords: get screenshot, visual verification, check design, view node, render image, visual audit
Chinese keywords (中文关键词): 获取截图, 视觉验证, 检查设计, 查看节点, 渲染图片, 视觉审计
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

