Skip to content

FileReadInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  1221746708["input_types.FileReadInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1221746708
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the Read tool. Reads files including text, images, PDFs, and notebooks.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class FileReadInput(TypedDict):
    """Input for the Read tool. Reads files including text, images, PDFs, and notebooks."""

    file_path: str
    """The absolute path to the file to read."""
    offset: NotRequired[int]
    """The line number to start reading from.

    Only provide if the file is too large to read at once."""
    limit: NotRequired[int]
    """The number of lines to read. Only provide if the file is too large to read at once"""
    pages: NotRequired[str]
    """Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files.

    Maximum 20 pages per request."""
    allow_large: NotRequired[bool]
    """Read a text file (or line range) that is over the usual size limits."""

allow_large instance-attribute

allow_large: NotRequired[bool]

Read a text file (or line range) that is over the usual size limits.

file_path instance-attribute

file_path: str

The absolute path to the file to read.

limit instance-attribute

limit: NotRequired[int]

The number of lines to read. Only provide if the file is too large to read at once

offset instance-attribute

offset: NotRequired[int]

The line number to start reading from.

Only provide if the file is too large to read at once.

pages instance-attribute

pages: NotRequired[str]

Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files.

Maximum 20 pages per request.

:fa-brands-github: Show source on GitHub