pub fn resolve_chart_disposition(
inline: bool,
output_path: Option<&str>,
format: ChartFormat,
) -> ChartDispositionExpand description
Decide what the chart tool should do with the rendered bytes based on
the caller’s inline and output_path flags plus the already-resolved
format.
Semantics (see the chart tool docs):
inline=true+ no path →InlineOnly(skip disk)inline=true+ path →WriteAndInline(both)inline=false/absent + path →WriteOnlyinline=false/absent + no path →WriteOnlywith auto-generated path understd::env::temp_dir()/hyperdb-charts/
This is the default path most callers take: keeps the MCP transcript small
by writing the PNG/SVG to disk and letting the caller Read(path) when
they want to display it.