Back
Cost:L2
|
Reward:L+4
gpt-4.1-nano

Tool Picker

medium12 tests

Your AI assistant has access to five tools: search_web, query_database, send_email, create_calendar_event, and get_weather. When a user makes a request, the assistant must decide which tool to call and output a JSON object with the tool name and arguments. If no tool is needed, output {"tool": "none", "args": {}}. Output ONLY the JSON — no explanation, no markdown code fences.

Available tools:

  • search_web: args {"query": string}
  • query_database: args {"sql": string}
  • send_email: args {"to": string, "subject": string, "body": string}
  • create_calendar_event: args {"title": string, "date": string, "time": string}
  • get_weather: args {"location": string}

Prompt Editor