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

Function is_file_modifying_tool

core/src/file_history.rs:146–148  ·  view source on GitHub ↗

Check if a tool name is a file-modifying tool that should trigger snapshots

(tool_name: &str)

Source from the content-addressed store, hash-verified

144
145/// Check if a tool name is a file-modifying tool that should trigger snapshots
146pub fn is_file_modifying_tool(tool_name: &str) -> bool {
147 matches!(tool_name, "write" | "edit" | "patch")
148}
149
150/// Extract the file path from tool arguments for file-modifying tools
151pub fn extract_file_path(tool_name: &str, args: &serde_json::Value) -> Option<String> {

Callers 2

extract_file_pathFunction · 0.85
attach_diff_metadataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected