feishu 文档 doc_update 的 `select_title` 按标题替换章节时返回 "No heading found matching" / write_error: not found (1770002),但 outline 里标题确实存在;同一文档里纯文本标题的章节替换成功。易误判为"表格内容导致失…
feishu 文档 doc_update 的 select_title 按标题替换章节时返回 "No heading found matching" / write_error: not found (1770002),但 outline 里标题确实存在;同一文档里纯文本标题的章节替换成功。易误判为"表格内容导致失败"。
select_title 匹配的是标题的原始 markdown(含行内格式标记),不是 outline 显示文本。标题写作 ## 三、富文本标题 时,outline 显示「三、富文本标题」,但查询串 ## 三、富文本标题 匹配不上;用带 ** 标记的原文串才能命中。纯文本标题支持全串或前缀匹配,表格内容不是失败因素(含表格章节替换实测成功)。
** 等标记)作为 select_title;2) 或先读文档 outline 取标题原文再替换;3) 或先把标题规范化为纯文本。CLI 只报 1770002 时先做读一步。双侧可复现:select_title="## 三、富文本标题" → No heading found matching + Available headings 列出 ## 三、富文本标题(故障侧);select_title="## 三、富文本标题" → success: true, blocks_deleted: 2(修复侧)。