MCPcopy Create free account
hub / github.com/0xKarl-dev/claw-codes / parse_tool_input

Function parse_tool_input

rust/crates/plugins/src/hooks.rs:214–216  ·  view source on GitHub ↗
(tool_input: &str)

Source from the content-addressed store, hash-verified

212}
213
214fn parse_tool_input(tool_input: &str) -> serde_json::Value {
215 serde_json::from_str(tool_input).unwrap_or_else(|_| json!({ "raw": tool_input }))
216}
217
218fn format_hook_warning(command: &str, code: i32, stdout: Option<&str>, stderr: &str) -> String {
219 let mut message =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected