Save a WeChat article into IMA with two user-facing flows:
不要把内部实现细节当成用户流程来描述。
scripts/save_wechat_to_ima.py <url> → 解析公众号文章 → 存到 IMA 笔记scripts/save_wechat_to_ima.py <url> <knowledge_base_name_or_id> → 解析公众号文章 → 查知识库 → 加入该知识库IMA_OPENAPI_CLIENTID and IMA_OPENAPI_APIKEY must be available in the environment, or stored in ~/.config/ima/client_id and ~/.config/ima/api_key.npm install once inside this skill directory so the bundled extractor dependencies are available.skills/ima-skill/ima_api.cjs is used when present, so this skill stays aligned with the latest IMA OpenAPI wrapper and error handling.The script prints JSON with:
titleaccountauthorpublish_timebody_img_countcover_usedmarkdown_pathnote_idreadback_okknowledge_base_name (when requested)knowledge_base_id (when requested)knowledge_media_id (when requested)knowledge_file_name (when requested)wechat-article-extractor installation.