Resource

list-writer

Writer for streaming tool list responses.

resource list-writer;

F check-write

check-write: func() -> result​<u32, stream-error>;

Check readiness for writing. Returns the number of tools that can be written without blocking. When this returns 0, the stream needs to flush before accepting more writes.

F write

write: func(tool: tool) -> result​<_, stream-error>;

Write a tool definition to the stream.