promptdojo_

Build the tool runner. The starter has a tools dict mapping tool names to functions. Write a function run_tool(name, args) that:

  • Returns "unknown tool" if name is not in tools.
  • Otherwise calls tools[name](args) and returns the result.

Then call run_tool("read_file", {"path": "todo.txt"}) and print the result.

Expected output:

contents of todo.txt

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.