Tool Call Salvage
PLUGINRemoves tool-call markup that a model wrote into its final reply as text instead of calling the tool.
by Julientalbot · v0.2.0
What it does
Removes tool-call markup that a model wrote into its final reply as text instead of calling the tool (Qwen <function=...>, <invoke>, DeepSeek DSML and tool tokens, Harmony, Kimi, Mistral and Llama formats). Only complete markup that ends the reply is touched; code blocks and markup followed by more text are left as they are.
When text is left before the removed markup, a one-line notice names the tools that were not run. An optional salvage mode, off by default and limited to the models you list, turns the markup into a real call to a tool offered in that request.
Disclosure: no network, files, shell, subprocesses, telemetry or stored state; logs name the format and tools, never arguments; in salvage mode text the model wrote can become a real tool call (tools offered in the request, or Ulpi's tool_call bridge when deferred_tools is on), run through Ulpi's normal approvals.
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve