Read Merge Conflict File Version
openl_read_merge_conflict_fileFetch a selected version (BASE, OURS, or THEIRS) of a conflicted file as read-only evidence to resolve merge conflicts manually.
Instructions
Read one BASE, OURS, or THEIRS version of a conflicted file from the current session as read-only evidence for manual user resolution in Studio. Never infer or apply a winning side automatically. UTF-8 and base64 binary chunks are returned in a JSON text envelope with MIME and byte-range metadata. Both forms include nextOffset while more data remains. length targets at most 16000 bytes; a UTF-8 chunk may include up to 3 extra bytes to finish its last character. The backend still downloads the whole file before this client-side slice. Use the exact file path from openl_get_merge_conflicts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Project-relative conflicted file path from openl_get_merge_conflicts(). | |
| side | Yes | Version to read: common ancestor, current branch, or merging branch. | |
| length | No | Target bytes returned from offset. Default and maximum target 16000; a UTF-8 response may add up to 3 bytes to finish a character. Continue with nextOffset when hasMore is true. | |
| offset | No | Byte offset in the downloaded file. Default 0. | |
| encoding | No | Content encoding. Default auto detects binary content. | |
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| response_format | No | Response format: 'json' for structured, round-trippable data (default), 'markdown' for human-readable output, 'markdown_concise' for a brief summary (1-2 paragraphs), or 'markdown_detailed' for full details with context | json |