导出会话为 HTML
piweb_export_sessionExport a pi coding session as an official single-file HTML for offline browsing or sharing; save it to local disk and return the path. Large sessions may take a few seconds.
Instructions
把会话导出成 pi 官方单文件 HTML(可离线翻阅/分享),写到本地磁盘并返回路径。大会话导出要几秒。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | 会话 id / 名称 | |
| out_path | No | 输出文件绝对路径;默认 <系统临时目录>/pi-web-export/<会话id>.html |