powered by
Define a tool parameter schema
tool_param(name, type, description, required = FALSE)
ToolParameter object
Character: The name of the parameter.
Character: The type of the parameter.
Character: The description of the parameter.
Logical: Whether the parameter is required.
EDG
tool_param("query", "string", "search query to send", required = TRUE)
Run the code above in your browser using DataLab