The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Messages
3url: https://platform.claude.com/docs/en/api/compliance/apps/sessions/remote/messages
4---
5
16# Messages
27
38## Retrieve remote session messages
from line 72
6772
6873### Headers
6974
75- `"anthropic-version": optional string`
76
77 The version of the Claude API you want to use.
78
79 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
80
7081- `"x-api-key": optional string`
7182
7283### Returns
from line 98
8798
8899 Text content block.
89100
101 - `type: "text"`
102
103 default: text
104
90105 - `text: string`
91106
92107 Text content from the user or the assistant
from line 112
97112
98113 default: false
99114
100 - `type: "text"`
101
102 default: text
103
104115 - `ToolUse object`
105116
106117 Tool invocation requested by the assistant.
107118
119 - `type: "tool_use"`
120
121 default: tool_use
122
108123 - `id: string or null`
109124
110125 Tool-use ID, e.g. 'toolu_01AbC...'
from line 138
123138
124139 default: false
125140
126 - `type: "tool_use"`
127
128 default: tool_use
129
130141 - `ToolResult object`
131142
132143 Result returned by a tool invocation.
133144
145 - `type: "tool_result"`
146
147 default: tool_result
148
134149 - `content: array of object`
135150
136151 Text content returned by the tool. Non-text item types are omitted.
137152
138 - `text: string`
139
140 Text returned by the tool
141
142153 - `type: "text"`
143154
144155 default: text
145156
157 - `text: string`
158
159 Text returned by the tool
160
146161 - `is_error: boolean`
147162
148163 True when the tool reported an error
from line 176
161176
162177 default: false
163178
164 - `type: "tool_result"`
165
166 default: tool_result
167
168179 - `content_unavailable: boolean`
169180
170181 True when the stored content could not be returned — it could not be decrypted, or it exceeded the server's per-event size bound. `content` is empty in that case; this distinguishes 'no content' from 'content withheld'.
from line 340
329340
330341 Text content block.
331342
343 - `type: "text"`
344
345 default: text
346
332347 - `text: string`
333348
334349 Text content from the user or the assistant
from line 354
339354
340355 default: false
341356
342 - `type: "text"`
343
344 default: text
345
346357 - `ToolUse object`
347358
348359 Tool invocation requested by the assistant.
349360
361 - `type: "tool_use"`
362
363 default: tool_use
364
350365 - `id: string or null`
351366
352367 Tool-use ID, e.g. 'toolu_01AbC...'
from line 380
365380
366381 default: false
367382
368 - `type: "tool_use"`
369
370 default: tool_use
371
372383 - `ToolResult object`
373384
374385 Result returned by a tool invocation.
375386
387 - `type: "tool_result"`
388
389 default: tool_result
390
376391 - `content: array of object`
377392
378393 Text content returned by the tool. Non-text item types are omitted.
379394
380 - `text: string`
381
382 Text returned by the tool
383
384395 - `type: "text"`
385396
386397 default: text
387398
399 - `text: string`
400
401 Text returned by the tool
402
388403 - `is_error: boolean`
389404
390405 True when the tool reported an error
from line 417
402417 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.
403418
404419 default: false
405
406 - `type: "tool_result"`
407
408 default: tool_result
409420
410421 - `content_unavailable: boolean`
411422