|
cxxmcp 1.1.6
C++ MCP SDK
|
Metadata describing a callable MCP tool. More...
#include <tool.hpp>
Public Member Functions | |
| TaskSupport | task_support () const noexcept |
| Returns the effective task support mode for this tool. | |
Public Attributes | |
| std::string | title |
| Optional human-readable display title. | |
| std::string | name |
Stable protocol identifier used by tools/call. | |
| std::string | description |
| Human-readable tool description. | |
| Json | input_schema = Json::object() |
| JSON Schema object describing accepted arguments. | |
| Json | output_schema = Json::object() |
| Optional JSON Schema object describing structured result content. | |
| bool | output_schema_present = false |
| Whether output_schema was explicitly present on the wire or configured. | |
| bool | streaming = false |
| Whether the tool may stream partial results outside a single response. | |
| std::vector< Icon > | icons |
| Optional icon descriptors for client presentation. | |
| std::optional< ToolExecution > | execution |
| Optional execution configuration including task support mode. | |
| std::optional< ToolAnnotations > | tool_annotations |
| Optional typed tool annotations for model or client presentation. | |
| Json | annotations = Json::object() |
| Optional raw annotations preserved for forward-compatible round trips. | |
| std::optional< Json > | meta |
Optional _meta extension object preserved on the wire. | |
| Json | extensions = Json::object() |
| Unknown JSON members preserved for forward-compatible round trips. | |
Metadata describing a callable MCP tool.