#[tool]Expand description
The #[tool] procedural macro.
Transforms a function into a full Tool implementation.
§Attributes
#[tool(description = "...")]— Required. The tool description shown to the LLM.#[param(desc = "...")]— Optional per-parameter. Adds description to the JSON schema.
§Parameter Rules
String,i64,f64,bool→ required in schemaOption<T>→ optional in schemaVec<T>→ array in schema