Install
openclaw skills install @panda-lsy/chemvision-skillUse this skill when the user asks about chemistry — chemical names, molecular structures (SMILES), molecular formulas, molecular weights, safety information (GHS hazards), or chemical reaction predictions. Supports Chinese and English chemical names, IUPAC names, and common names. Calls PubChem and OPSIN real chemistry databases to reduce LLM hallucinations. Returns molecular structure images and chemical equation renderings.
openclaw skills install @panda-lsy/chemvision-skill化学数据查询服务 — PubChem + OPSIN 真实数据库,分子结构图 + 化学方程式渲染。
cd {this_skill_dir} && python manage.py status
If not running: python manage.py start
To stop: python manage.py stop
POST to http://localhost:8899/api/tools/call.
curl -s -X POST http://localhost:8899/api/tools/call \
-H "Content-Type: application/json" \
-d '{"tool_name":"name_to_structure","arguments":{"name":"苯甲酸"}}'
Returns SMILES, formula, weight, svg_url.
Important: Tools only accept English names. If the user asks in Chinese, Agent must translate to English first, then call the tool. Example: "苯甲酸" → "benzoic acid".
curl -s -X POST http://localhost:8899/api/tools/call \
-H "Content-Type: application/json" \
-d '{"tool_name":"inspect_smiles","arguments":{"smiles":"CCO"}}'
curl -s -X POST http://localhost:8899/api/tools/call \
-H "Content-Type: application/json" \
-d '{"tool_name":"safety_info","arguments":{"query":"benzene"}}'
Queries chemical data for reactants. Agent should answer the reaction itself.
curl -s -X POST http://localhost:8899/api/tools/call \
-H "Content-Type: application/json" \
-d '{"tool_name":"predict_reaction","arguments":{"reactants":"acetic acid + ethanol"}}'
svg_url from tool result in browsersend_file_to_user(file_path="xxx.png", caption="分子结构图")After answering a reaction, render the equation:
http://localhost:8899/api/formula/{equation}send_file_to_user(file_path="xxx.png", caption="化学方程式")Equation format rules:
H2O, CH3COOH, Ca(OH)2Fe^{2+}, SO4^{2-}-> (one way), <=> (equilibrium)[加热], [催化剂] (shown above/below arrow)CH3COOH+C2H5OH<=>[浓硫酸][加热]CH3COOC2H5+H2OIf predict_reaction fails, the Agent answers directly using its own chemistry knowledge, then renders the equation via /api/formula/.