Raxol.AgentClientProtocol.Schema.ClientTypes.ReadTextFileRequest (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

Request to read content from a text file (fs/read_text_file). Only sent if the client declared the fs.readTextFile capability.

Ported from the MIT f1729/agent_client_protocol (c) 2025 f1729; see NOTICE.md.

Summary

Functions

Total: never raises. Missing/non-string sessionId/path is the only failure mode.

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.ReadTextFileRequest{
  _meta: map(),
  limit: non_neg_integer() | nil,
  line: non_neg_integer() | nil,
  path: String.t(),
  session_id: String.t()
}

Functions

from_json(map)

@spec from_json(term()) :: {:ok, t()} | {:error, term()}

Total: never raises. Missing/non-string sessionId/path is the only failure mode.

new(session_id, path)

@spec new(String.t(), String.t()) :: t()

to_json(r)

@spec to_json(t()) :: map()