Skip to main content
merged_prs lists the pull requests merged since a date by running the gh CLI.
1

Open the workbench in tool mode

2

Describe the tool

Say what goes in, what comes back, and which command or API it uses. The drafter checks your catalog for a tool that already does it, then puts a first draft in the pane and asks what it can’t settle itself.
The workbench with tool_drafter active: the request and the drafter's question on the left, and the merged_prs draft on the right with its description, kind exec, the gh command it runs, its since input, and no problems.

The tool drafter's first draft in the pane, with its question in the chat.

3

Test-run it

Answer its questions and ask it to test the tool. It runs the draft on a sample input once you approve the run:
The workbench's approval form asking whether to test-run user__merged_prs once with the command gh pr list --state merged --search merged:>={{input.since}} --json number,title,mergedAt and the input since 2026-09-24, with run set to true.

The approval form for a test run, showing the command and the sample input.

The result shows in the pane:
4

Save

Press Ctrl+S. graph writes the file to ./.graph/tools/merged_prs.yaml, and the tool is in your catalog as user__merged_prs.

Test a tool

Run any tool directly and see what it returns.

Tool file

Every field a tool file takes.

Create an agent in the workbench

Draft an agent that calls your tool.

Draft a plan in the workbench

Draft a plan that uses your tool.