macro_rules! tool_image_content {
($data:expr, $mime_type:expr) => { ... };
}
Expand description
Creates an image content object for tool responses.
This macro generates a ToolResponseContent::Image
object with the provided data and MIME type.
ยงExamples
use mcp_core::tool_image_content;
let image_data = "base64_encoded_data".to_string();
let content = tool_image_content!(image_data, "image/jpeg".to_string());