Mark category.operation (e.g. tools.call) as task-augmentable.
Client: task-augmented elicitation/create (tasks.requests.elicitation.create).
Client: task-augmented sampling/createMessage (tasks.requests.sampling.createMessage).
The accumulated nested requests object. Returns an empty object when nothing was added.
Server: task-augmented tools/call (tasks.requests.tools.call).
Builder for the nested tasks.requests capability object (spec 2025-11-25).
The spec structures tasks.requests by request category with presence-only sub-objects rather than flat slash-delimited method names. For example, a server advertises task-augmented tools/call as {"tools": {"call": {}}} (capability key tasks.requests.tools.call), and a client advertises task-augmented sampling/createMessage and elicitation/create as {"sampling": {"createMessage": {}}, "elicitation": {"create": {}}}.
Chain the convenience methods (or add) and call toJson to obtain the object to assign to TasksCapability.requests: