MCPcopy Index your code
hub / github.com/AI45Lab/Code / make_pre_tool_event

Function make_pre_tool_event

core/src/hooks/engine.rs:417–425  ·  view source on GitHub ↗
(session_id: &str, tool: &str)

Source from the content-addressed store, hash-verified

415 use crate::hooks::events::PreToolUseEvent;
416
417 fn make_pre_tool_event(session_id: &str, tool: &str) -> HookEvent {
418 HookEvent::PreToolUse(PreToolUseEvent {
419 session_id: session_id.to_string(),
420 tool: tool.to_string(),
421 args: serde_json::json!({}),
422 working_directory: "/workspace".to_string(),
423 recent_tools: vec![],
424 })
425 }
426
427 #[test]
428 fn test_hook_config_default() {

Calls

no outgoing calls