Skip to content

TUI: support multi-select (array) fields in ink-form forms #2904

Open

Description

@cliffhall

The TUI builds its tool and elicitation forms with schemaToForm (clients/tui/src/utils/schemaToForm.ts). ink-form has no multi-select, so a { type: "array", items: { enum: [...] } } property becomes a single select. That means:

Expected: the user can choose several values (a custom ink-form field manager, or a comma/JSON-array text input as a fallback), and minItems/maxItems are checked before the call or the elicitation answer is sent.

Raised by Copilot review on #2903 and declined there as out of scope: #2829 asked for the elicitation form to reuse the existing tool form, which has this limitation for tool arguments too.

Activity

  1. added this to the v2.15.0 milestone on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature requestv2Issues and PRs for v2

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions