Module Spindle_mcp.Question

A question a tool asks a person before it acts -- "Delete the folder and all it holds?" -- through the client, which shows it as a form (MCP's elicitation).

type 'a t
val form : string -> message:string -> 'a Wiretype.t -> 'a t

form key ~message answer: message for the person, answer what they fill in -- an object whose members are strings, numbers, integers, booleans or enums, as a form holds (routes refuses any other). key names it among a tool's questions.

type declared

A question of any answer, as a tool lists them.

val declare : 'a t -> declared