All skills
Skillintermediate
extract text
Extract text content from images, screenshots, or diagrams for processing and analysis.
Claude Code Knowledge Pack7/10/2026
Overview
Extract text content from images, screenshots, or diagrams for processing and analysis.
Steps
- Load the image using the Read tool to examine it visually.
- Identify text regions in the image:
- Extract text maintaining structure:
- Handle special content:
- Clean up the extracted text:
- Format the output for the intended use:
Format
Source: <image path>
Text Regions Found: <count>
Extracted Content:
[Header] <text>
Rules
- Preserve the original structure and hierarchy of the text.
- Flag text that is unclear or ambiguous with low confidence.
- Maintain code formatting exactly as shown in the image.