read_file
Reads one file by absolute path - e.g., decompiled source or AndroidManifest.xml - returning its content. Files over 512 KB are truncated.
Instructions
Read one file's contents by absolute path - e.g. a decompiled source file or an AndroidManifest.xml from decode_apk's output. Only reads. Content over 512 KB is cut off at 512 KB, signalled by truncated: true. Returns { filePath, size, truncated, encoding, content } where size is the full file size in bytes. Errors if the path doesn't exist or is a directory (use list_files to see what's in a directory first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | How content is returned. Default utf8; use base64 for binary files. | utf8 |
| filePath | Yes | Absolute path to the file to read. | |
| workspace | No | Workspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default". |