Tool Call Folding
Minecraftbe/dsh-toolfold · themes
Fold consecutive tool calls into a row of folding bars, click to expand, and support separating call groups by thoughts.
★ 6GitHub stars
0Forks
2026-08-26Last updated
JavaScriptLanguage
MITLicense
Key features
- Continuous tool calls are collapsed into one strip: adjacent tool calls are collapsed in their entirety, and a one-line summary of the last call is directly displayed in the strip, with the label "N tool calls collapsed · Click to expand"
- Installed (bundle) modeThe settings are persisted by the DSH setting service to /.dsh/settings.yaml (namespace toolfold). They are in the same document as the settings of the product and other plug-ins. They can be moved with the dsh host and will not be lost when changing browsers/devices
- Actual measurement (real GUI page, idle window 8s): the total engine time is about 1.6–2.8ms (≈0.3ms/s, about 0.03% single core)
- Thinking separated call group (enabled by default): Completed thinking will separate the two groups of tool calls before and after, and fold them independently. The calls before and after thinking will not be merged into one
- Restore the original folding method after closing - think about folding it into the same tool group
Requirements
- Folding is based on the rendered DOM and relies on product stable markup
- If the product mark changes, the worst case scenario is that the folding stops taking effect, which will not disrupt the chat
Install command
dsh plugin --profile web add github:Minecraftbe/dsh-toolfold