files.read_outline
Get a flat list of markdown headings for a file to see its sections before reading or updating, avoiding full body reads to save tokens.
Instructions
Return a flat list of markdown headings for one file (level, text, line, byteStart, byteEnd). Read-only; no side effects, auth, or rate limits. Use as a cheap probe before files.read({ id, section }) or files.update({ file_id, section, content }) so you don't spend tokens on the full body just to learn what sections exist. Empty outline means the file has no markdown headings (it may still have content — fall back to files.read in full or files.read({ id, lines })).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID |