Tool / Function Calling
Modern LLMs can call tools you define. Each tool is described by a schema: a
name, a description, and an input_schema (JSON Schema) telling the model
what arguments it accepts.
{ name: "get_weather", description: "...", input_schema: { type: "object", properties: {} } }
Your task
Write buildTool(name, description) that returns a tool object with those exact
keys and an empty-properties object schema.
β‘ 40 XP
solution.jsRuns in your browser
Loading editorβ¦
Tests1 to pass
builds the schema
Run your code to check these.