Imported from Pulkit7070/blink-ai (
src/mastra/skills/screen-capture/SKILL.md). Install upstream withnpx skills add Pulkit7070/blink-ai --skill screen-capture. Copyright stays with the author.
Screen Capture Skill
Enables the AI to see and analyze the user's screen for debugging, documentation, and visual assistance.
Capabilities
- Full Screen Capture: Capture entire screen or specific monitor
- Window Capture: Capture specific application window
- Area Selection: Capture user-selected screen region
- OCR: Extract text from screenshots using Tesseract.js
- Visual Analysis: Analyze screenshots using vision-capable AI models
- Screen Recording: Record screen activity (optional)
Tools
capture_screen
Capture a screenshot of the current screen.
Input:
type: 'full' | 'window' | 'selection'windowName: Target window name (for 'window' type)bounds: Selection bounds {x, y, width, height} (for 'selection' type)
Output:
imageData: Base64 encoded PNG imagewidth: Image widthheight: Image heighttimestamp: Capture timestamp
extract_text_from_image
Perform OCR on an image to extract text.
Input:
imageData: Base64 encoded imagelanguage: OCR language (default: 'eng')
Output:
text: Extracted textconfidence: OCR confidence scoreblocks: Text blocks with bounding boxes
analyze_screenshot
Analyze a screenshot using AI vision capabilities.
Input:
imageData: Base64 encoded imagequery: Analysis query (e.g., "What errors do you see?")
Output:
analysis: AI analysis of the screenshotfindings: Key findings/observationssuggestions: Recommended actions
get_active_window
Get information about the currently active window.
Output:
title: Window titleappName: Application namebounds: Window bounds {x, y, width, height}
Usage Examples
// Capture full screen
const screenshot = await tools.capture_screen({ type: 'full' });
// Extract text from screenshot
const ocr = await tools.extract_text_from_image({
imageData: screenshot.imageData
});
// Analyze screenshot
const analysis = await tools.analyze_screenshot({
imageData: screenshot.imageData,
query: 'What code errors are visible?'
});
Configuration
No additional API keys required. Uses:
- Electron's
desktopCapturerAPI for screen capture - Tesseract.js for OCR (local processing)
- Vision-capable AI model for analysis
Best Practices
- Always ask user permission before capturing screen
- Highlight or annotate areas of interest in the UI
- Use OCR to extract code/errors for copy-paste
- Respect user privacy - don't capture sensitive information
- Provide quick capture shortcuts (e.g., Cmd+Shift+5)