SkillsHooksPromptsAgentsPersonasModelsPoliciesToolsTemplatesBundlesCategoriesStart here
← Tools
To toolcommandcodingfs-readstable

read-file

Read a file from the workspace. Read-only; no side effects beyond opening the file.

id tool/read-filev1.0.0function read_file

Signature

ParameterTypeRequiredDescription
pathstringyesAbsolute or workspace-relative path
offsetnumbernoLine offset for partial reads
limitnumbernoMax lines to return
returnsstringFile contents (or specified slice).

Tool definition for the model

{
  "name": "read_file",
  "description": "Read the contents of a file at the given path.",
  "input_schema": {
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "description": "Absolute or workspace-relative path"
      },
      "offset": {
        "type": "number",
        "description": "Line offset for partial reads"
      },
      "limit": {
        "type": "number",
        "description": "Max lines to return"
      }
    },
    "required": [
      "path"
    ]
  }
}

Used by

Author convergent-systems-key. Source convergent-systems-co/agent-atoms (original ↗). License Apache-2.0. Re-typed from tool-definition by scripts/migrate-policy-tool.py.