Skip to content

SDKControlReadFileRequest

Base classes

Name Children Inherits
_ControlBase
clawd_code_sdk.models.control
Frozen base for all SDK control request models.

⋔ Inheritance diagram

graph TD
  989351283["control.SDKControlReadFileRequest"]
  1268774935["control._ControlBase"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  1268774935 --> 989351283
  3879467795 --> 1268774935
  2751680898 --> 3879467795

🛈 DocStrings

Bases: _ControlBase

Read a file from the session filesystem for the remote sidebar viewer.

Path is resolved against cwd and gated by the same read-permission rules as the Read tool.

Source code in src/clawd_code_sdk/models/control.py
class SDKControlReadFileRequest(_ControlBase):
    """Read a file from the session filesystem for the remote sidebar viewer.

    Path is resolved against cwd and gated by the same read-permission rules as the Read tool.
    """

    subtype: Literal["read_file"] = "read_file"
    path: str
    max_bytes: int | None = None
    encoding: Literal["utf-8", "base64"] | None = None

:fa-brands-github: Show source on GitHub