save_figure
Saves the current figure to reports/figures as a PNG only when the user explicitly requests it, using kind and analysis_id to name the file.
Instructions
明示的なユーザー要求時だけ、直近の図を reports/figures/<analysis_id>_.png に保存する。
kind: "pca"(arf_parser / arf_pca_preprocessed / arf_pca_species / dataset_pca のスコア。
arf_pca_species の結果は source="species")/ "volcano"
(arf_differential / dataset_differential。間引き前の全点)/ "eic"(eic_plot_chromatograms /
eic_plot_compounds)/ "group_intensity"(arf_plot_group_intensity。dpi 300 の PNG と同名 .svg)/
"species"(arf_plot_species。dpi 300 の PNG と同名 .svg)/
"pca_loadings"(plot_pca_loadings。dpi 300 の PNG と同名 .svg)。
source / result_id: kind が pca / volcano のときだけ使う。"auto"(既定)はどちらも優先せず、
有効な結果が 2 つ以上あると AMBIGUOUS_RESULT_SOURCE で止まる("arf" / "mztab"、kind="pca" のときだけ
"species"(arf_pca_species)でも指定できる)。
通常の対話描画では呼ばない(各描画ツールが画像を返す)。返り値の相対パスは write_report の
本文に  として埋め込める。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| title | No | ||
| source | No | auto | |
| result_id | No | ||
| analysis_id | Yes |