Repository navigation
Description
Summary
When invoking a tool directly from chat with the !! prefix, the autocomplete for the Agent tool shows just Agent() with empty parentheses and the generic description "Execute Agent tool directly". It gives no indication of which arguments to pass, so the user has no idea how to call it.
(Screenshot from the reporter: input > !! Age, dropdown > Agent() | Execute Agent tool directly, with no arguments shown.)
Root cause: the !! template is built by generateToolTemplate (internal/ui/autocomplete/autocomplete.go:278), which fills the parentheses with only the tool's top-level required properties via extractRequiredArguments (:294, which reads params["required"]). The Agent tool's schema (internal/agent/tools/agent.go:106-138) has no top-level required array: it accepts either tasks (array) or description (shorthand) - a one-of - and the only required is nested under tasks.items (["description"]). So extractRequiredArguments returns nothing and the template is !!Agent(). The suggestion's Description is the generic "Execute tool directly" and its Usage is empty (:271-272), so no parameter names / types / descriptions are surfaced anywhere.
Net effect: for the Agent tool - and any tool whose useful arguments are not top-level required (one-of or all-optional schemas) - !! gives the user no clue what to type.
Steps to Reproduce
- Run
infer chat. - Type
!! Ageto trigger the direct-tool autocomplete. - Observe the suggestion offered for the
Agenttool.
Expected Behavior
The completion should surface the tool's arguments so the user knows what to pass - for example, insert a parameter skeleton like !!Agent(description="...") (or tasks=[...]), and/or list the parameters (name, type, required/optional, description) in the dropdown or a usage line. Tools with a one-of or all-optional schema should still show their meaningful arguments.
Actual Behavior
The dropdown shows Agent() with empty parentheses and "Execute Agent tool directly". No arguments are shown, so there is no guidance on how to call the tool.
Suggested direction: have generateToolTemplate / the suggestion builder include parameter hints beyond top-level required (fall back to top-level optional properties, and/or handle the one-of forms), and/or populate the Usage field (or a dropdown detail line) with the parameter list derived from the tool's schema.
Environment: macOS, infer chat TUI; model ollama_cloud/deepseek-v4-flash.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(autocomplete): surface arguments for one-of/all-optional tool sch…
inference-gateway-releaser commentedon Jun 30, 2026
🎉 This issue has been resolved in version 0.126.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
feat(tools): add TextToVideo tool for gateway video generation with l…