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

Function tool_input_command_str

src/hooks/post_tool_use.rs:133–136  ·  view source on GitHub ↗

The `tool_input.command` string, if any (Bash's shell command). Empty when absent. Shared with the Claude hint path so it reads the command from the same place the daemon-sync path does.

(parsed: &Value)

Source from the content-addressed store, hash-verified

131/// absent. Shared with the Claude hint path so it reads the command from the
132/// same place the daemon-sync path does.
133pub(super) fn tool_input_command_str(parsed: &Value) -> Option<String> {
134 let command = tool_input_command(parsed);
135 (!command.is_empty()).then(|| command.to_string())
136}
137
138/// The `tool_input.file_path` string, if any (Grep/Glob/Read/Edit targets).
139/// Empty when absent.

Callers 1

Calls 2

tool_input_commandFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected