Skip to main content

file_write_tool

Function file_write_tool 

Source
pub fn file_write_tool() -> Tool
Expand description

Creates a file write tool for testing destructive operations.

§Example

use fastmcp_rust::testing::fixtures::tools::file_write_tool;

let tool = file_write_tool();
assert!(tool.annotations.as_ref().unwrap().destructive.unwrap());