ToolDefinition
- struct ToolDefinition : struct Tool
Definition - Bases:
One MCP tool as a client sees it: what to call it, and what it is for.
Description
The prose fields are the model's only basis for choosing between tools, so they carry the distinction rather than restating the name — see
summaryand the guidance after it.
Members16 members
- name: let name: String What the client names in a
ToolCall. - title: let title: String A short human label, shown by clients that render one.
- summary: let summary: String What the tool answers, for a model choosing between them. First line of the description, and the only part some clients show.
- detail: let detail: String When to reach for this one rather than a neighbour, and what the result means. Empty for tools whose summary says everything.
- arguments: let arguments: [Tool
Argument ] - outputSchema: let output
Schema : JSONValue? What the tool answers with, when that shape is guaranteed. Declared only where it is: MCP requiresstructuredContentto conform to this, so a schema the server may break is worse than none at all. - toolset: let toolset: Toolset
- processReach: let process
Reach : ProcessReach - tmuxEffects: let tmux
Effects : Set<TmuxEffect > - outputClasses: let output
Classes : Set<OutputClass > - mayExposeSecrets: let may
Expose : BoolSecrets - mayReturnUntrustedContent: let may
Return : BoolUntrusted Content - explicitAnnotations: let explicit
Annotations : ToolAnnotations - inputSinks: let input
Sinks : [String : Set<InputSink >] - nestedAuthority: let nested
Authority : Set<String> - amplifiesFutureInput: let amplifies
Future : BoolInput
No members of ToolDefinition match . The filter searches only this type. Search the whole API.