ToolOutput

works.iterative.claude.ui.transcript.ToolOutput
See theToolOutput companion object
enum ToolOutput

One part of what came back from a call, in the order it came back.

An answer is not always writing. A tool that looks at a screen answers with a picture, and a tool that writes a file answers with the file. Both are artifacts — things the call produced rather than said — and neither crosses this wire as bytes.

A picture is named by where it sits: the call it came back from, and which part of that answer it is. So a page asks the host that served the transcript for it, and that host reads it out of the session it was already reading. A file is named and nothing more: its bytes are on the machine that ran the session, and offering to fetch them would turn a transcript into a way into that machine.

The parts keep the order they arrived in, because the words a tool wrote around a picture are about it.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Detail(text: String)

Characters the tool wrote, shown as the characters they are.

Characters the tool wrote, shown as the characters they are.

Attributes

final case class File(path: String)

A file the call wrote, named by the path it was written to.

A file the call wrote, named by the path it was written to.

Attributes

final case class Image(part: Int, mediaType: String, name: Option[String])

A picture the call answered with.

A picture the call answered with.

Value parameters

mediaType

what kind of picture it is

name

what to call it — the file the call named, when it named one

part

which part of this call's answer it is, which is how a page asks a host for it

Attributes