MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / tool_input_command

Function tool_input_command

src/hooks/post_tool_use.rs:122–128  ·  view source on GitHub ↗
(parsed: &Value)

Source from the content-addressed store, hash-verified

120}
121
122fn tool_input_command(parsed: &Value) -> &str {
123 parsed
124 .get("tool_input")
125 .and_then(|ti| ti.get("command"))
126 .and_then(Value::as_str)
127 .unwrap_or_default()
128}
129
130/// The `tool_input.command` string, if any (Bash's shell command). Empty when
131/// absent. Shared with the Claude hint path so it reads the command from the

Callers 3

notify_post_tool_useFunction · 0.85
tool_input_command_strFunction · 0.85
codex_edit_rel_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected