Skip to main content

collect_param_details

Function collect_param_details 

Source
pub fn collect_param_details(
    tool_name: &str,
    args: &Value,
    skipped: &[&str],
    workspace_root: Option<&Path>,
) -> Vec<String>
Expand description

Human Key: value lines for the arguments a headline does not consume.

Verbose content keys, plumbing noise, and the caller-supplied skipped keys (headline-consumed) stay out; strings truncate to 60 columns, paths relativize against the workspace, lists summarize to two items, and only true flags and non-zero numbers render. Key order follows serde_json::Map iteration. An empty skipped slice shows every displayable key — no separate include-all flag needed. tool_name (MCP prefixes accepted) decides the text exemption below.