export_mermaid
Generates Mermaid organization charts from an ontology run, including reporting and collaboration handoff relationships, with optional year filtering, and returns written file paths and byte counts.
Instructions
组织架构模式的运行导出组织图(Mermaid):组织隶属.mmd(隶属、汇报、担任)和协作交接.mmd(协作、交接及交接内容)。years 写 2016-2022 只画这段时间的关系,没写时间的关系每段都画;判错的不画。文件写到本机的一个文件夹(out_dir,默认在下载文件夹里),同名覆盖,只返回文件的路径和字节数 {dir, files: [{name, path, bytes}], total_bytes, removed},不返回文件内容。文件夹里会留一份清单 .ontopoc-export.json,记着这一类导出这次写了哪些文件;再导出到同一个文件夹时,上次清单里有、这次没有的文件会被删掉(removed 是删掉的文件名),清单以外的文件不碰。文件名必须是单纯的文件名,否则整次导出报错、一个文件也不写。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"saved_as": "<saved_as>"
},
"name": "export_mermaid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | 只画这段年份的关系,如 2016-2022;不写就每段都画 | |
| out_dir | No | 导出文件写到哪个文件夹,必须是绝对路径;不写就是 ~/Downloads/OntoPoc/<运行保存名去掉 .json>/<forms|ttl|mermaid|pipeline>/ | |
| saved_as | Yes | 运行的保存名,来自 list_runs 或 build_ontology |