Skip to main content

Type Alias: ToolDisplayKind

ToolDisplayKind = "shell" | "file-read" | "file-write" | "file-edit" | "file-info" | "directory-list" | "todo" | "web-search" | "subagent" | "agent-message" | "thinking" | "bal" | "browser" | string & object

Defined in: packages/core/src/utils/tools.ts:149

Which renderer shows a call. Hosts dispatch on it and fall back to a generic card for a kind they do not know; any string is allowed. The named kinds are the ones Baleybots' own renderers and reducers read, each with the input and result its renderer expects:

  • shell: input { command }, result { stdout, stderr, exitCode }.
  • file-read, file-write, file-edit (input { old_string, new_string }), file-info, directory-list (result { entries: [{ name, type }] }).
  • todo: result { todos: [{ id, text, completed, parentId? }] }.
  • web-search: input { query }, result { results: [{ title, url }] }.
  • subagent: the call runs a child agent whose events stream into the call's child segments; hosts show it as the child's card (task from the input's description, prompt or goal). Its segment keeps the call's input and result beside the child's progress, so history resends it.
  • agent-message: a message to another agent, shown only while it runs.
  • thinking: sequential thinking; successive calls build one thought list.
  • bal: BAL code (input { code }) that defines and runs bots.
  • browser: a browser toolset member.