The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Retrieve remote session messages
3url: https://platform.claude.com/docs/en/api/compliance/apps/sessions/remote/messages/list
4---
5
16# Retrieve remote session messages
27
38**GET** `/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages`
from line 70
6570
6671## Headers
6772
73- `"anthropic-version": optional string`
74
75 The version of the Claude API you want to use.
76
77 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
78
6879- `"x-api-key": optional string`
6980
7081## Returns
from line 96
8596
8697 Text content block.
8798
99 - `type: "text"`
100
101 default: text
102
88103 - `text: string`
89104
90105 Text content from the user or the assistant
from line 110
95110
96111 default: false
97112
98 - `type: "text"`
99
100 default: text
101
102113 - `ToolUse object`
103114
104115 Tool invocation requested by the assistant.
105116
117 - `type: "tool_use"`
118
119 default: tool_use
120
106121 - `id: string or null`
107122
108123 Tool-use ID, e.g. 'toolu_01AbC...'
from line 136
121136
122137 default: false
123138
124 - `type: "tool_use"`
125
126 default: tool_use
127
128139 - `ToolResult object`
129140
130141 Result returned by a tool invocation.
131142
143 - `type: "tool_result"`
144
145 default: tool_result
146
132147 - `content: array of object`
133148
134149 Text content returned by the tool. Non-text item types are omitted.
135150
136 - `text: string`
137
138 Text returned by the tool
139
140151 - `type: "text"`
141152
142153 default: text
143154
155 - `text: string`
156
157 Text returned by the tool
158
144159 - `is_error: boolean`
145160
146161 True when the tool reported an error
from line 173
158173 True when one or more text items in `content` were shortened. Pass `tool_result_max_bytes=-1` to request full content, subject to the server-side maximum.
159174
160175 default: false
161
162 - `type: "tool_result"`
163
164 default: tool_result
165176
166177 - `content_unavailable: boolean`
167178