Skip to content

M5-2: AppData File Reading

Description

Create read_container_file tool with pagination and encoding detection.

Endpoint

POST /api/v1/tools/read_container_file

Parameters

  • container_name, file_path (required)
  • lines (number): Default 1000, max 5000
  • offset, after, before, tail (pagination)
  • encoding (string): Default utf-8

Features

  • Binary file detection via magic numbers, MIME type, null bytes
  • Automatic encoding detection
  • Pagination support (forward/backward)
  • File info metadata (size, timestamps, line count)
  • Timeout protection for large files

Estimated Effort

1 day