Macro tool_text_content

Source
macro_rules! tool_text_content {
    ($e:expr) => { ... };
}
Expand description

Creates a text content object for tool responses.

This macro generates a ToolResponseContent::Text object with the provided text.

ยงExamples

use mcp_core::tool_text_content;

let content = tool_text_content!("Hello, world!");