docmd-assistant v0.1.14 introduces a universal, provider-agnostic tool parser that reliably intercepts and executes AI tool calls across all major LLMs and output formats.
Key Features & Enhancements
Universal Multi-Format Tool Call Parser
- Balanced JSON Scanner: Reliably extracts inline JSON tool objects regardless of key ordering (
{"name": ..., "parameters": ...}or{"parameters": ..., "name": ...}), nested objects, or string-encoded argument payloads. - Markdown Codeblock Parsing: Detects and extracts tool payloads formatted inside standard Markdown code fences (
json ...,tool_call ...). - Bracketed Tool-Call Syntax: Added comprehensive regex extraction for bracketed and labeled tool expressions, including:
[Tool Call: search_documentation({"query":"..."})][Tool Call: get_site_structure()][TOOL_CALL: search_documentation(...)][Function Call: name(...)]
- Zero-Argument & Functional Syntax: Added support for zero-argument tool invocations (
get_site_structure()) and functional argument lists (tool_name(query="value")).
Registered Tools Matching
- Dynamic Registry Matching: Assistant engine execution loops now pass registered tool names (
search_documentation,get_site_structure, and custom tools) directly intoparseAssistantOutputfor deterministic recognition.
Zero Raw Tool String Leakage
- Clean User Chat Experience: Completely prevents unparsed tool-call markup from reaching human users in the chat interface; all tool invocations are executed autonomously and synthesised into clean, fact-grounded responses.
Resolved Issues
- docmd #206: AI chat returns tool-call string instead of real responses (reported by @mewc).
Upgrade
npm
pnpm
npm install docmd-assistant@0.1.14
pnpm add docmd-assistant@0.1.14