Skip to main content

read-large-md

Read markdown files that are too large for the Read tool due to embedded base64 images. Use when Read fails with "exceeds maximum allowed size" on a .md file.

跳到安装

来源信息

仓库
AMindToThink/claude-code-settings
最近来源活动
2026年3月17日 12:55
检测到的 SKILL.md 语言
英语
星标
4
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
read-large-md
description
Read markdown files that are too large for the Read tool due to embedded base64 images. Use when Read fails with "exceeds maximum allowed size" on a .md file.
user-invocable
false
## Reading Large Markdown Files with Embedded Images Markdown files exported from Google Docs or similar tools often contain base64-encoded inline images (`![alt](data:image/png;base64,...)`) on single very long lines. These make the file hundreds of KB or millions of tokens, causing the Read tool to fail with "exceeds maximum allowed size" or "exceeds maximum allowed tokens." ### Technique Use **Grep** to extract only the text lines, filtering out image data: ``` Grep pattern="^[^!]" path="<file>" output_mode="content" head_limit=200 ``` This matches all lines that do NOT start with `!` (markdown image syntax), skipping the `![...](data:image/png;base64,...)` lines. ### Paginating through results Use `offset` and `head_limit` to read in chunks: ``` Grep pattern="^[^!]" path="<file>" output_mode="content" offset=0 head_limit=200 Grep pattern="^[^!]" path="<file>" output_mode="content" offset=200 head_limit=200 ``` ### Finding specific sections Search directly for section headers or keywords: ``` Grep pattern="## Theory of Change" path="<file>" output_mode="content" -A=30 ``` ### When to use this - Read tool fails on a `.md` file due to size - The file is known to contain embedded images (e.g., Google Docs export) - You need the text content but not the images
在 GitHub 查看