Tool metadata attached to a method via Method.annotate — the Effect annotation idiom. Inert to the type inference and the wire contract; it only feeds the tools that render this resource.
modelsMethod.annotate
Source src/Hyperlink.ts:38211 lines
export interface MethodAnnotations {
/** Help text — CLI/TUI help, dashboard tooltips. */
readonly MethodAnnotations.description?: string | undefinedHelp text — CLI/TUI help, dashboard tooltips.
description?: string;
/** A `mutate` that loses state (`shutdown`/`clear`/`drop`) → confirm / danger styling. */
readonly MethodAnnotations.destructive?: boolean | undefinedA mutate that loses state (shutdown/clear/drop) → confirm / danger styling.
destructive?: boolean;
/**
* When `"pair"`, a 2-tuple payload is surfaced as two call arguments `(first, second?)`
* instead of a single tuple (used by custom-queue `add(item, level?)`).
*/
readonly MethodAnnotations.callStyle?: "pair" | undefinedWhen "pair", a 2-tuple payload is surfaced as two call arguments (first, second?)
instead of a single tuple (used by custom-queue add(item, level?)).
callStyle?: "pair";
}
Referenced by 6 symbols