macro_rules! tool_resource_content {
($uri:expr, $mime_type:expr) => { ... };
($uri:expr) => { ... };
}
Expand description
Creates a resource content object for tool responses.
This macro generates a ToolResponseContent::Resource
object with the provided URI and optional MIME type.
ยงExamples
use mcp_core::tool_resource_content;
use url::Url;
let uri = Url::parse("https://example.com/resource.png").unwrap();
let content = tool_resource_content!(uri, "image/png".to_string());