v0.3.0-alpha.28 · Interface
tool-writer
Writes tools/call and tools/list results to an output stream.
Tools specification: https://modelcontextprotocol.io/specification/2025-06-18/server/tools#tool-result tools/list: https://modelcontextprotocol.io/specification/2025-06-18/schema#tools-list tools/call: https://modelcontextprotocol.io/specification/2025-06-18/schema#tools-call
Records
Type Aliases
T
output-stream
TAn output bytestream.
stream-error
TAn error for input-stream and output-stream operations.
content-block
TContent blocks that can be included in messages.
bytes
TRaw byte array data.
cursor
TOpaque pagination token.
data
TRepresents data that can be either text or binary.
meta
TOptional metadata for vendor-specific extensions.
json
JSON-encoded data as a string.