You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/integrations/managed_agent.mdx
+196Lines changed: 196 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,4 +64,200 @@ Open a Claude Platform Managed Agent session and return the assistant response a
64
64
|`inputTokens`| number | Cumulative input tokens for the session. |
65
65
|`outputTokens`| number | Cumulative output tokens for the session. |
66
66
67
+
### `managed_agent_create_session`
68
+
69
+
Create a Claude Platform Managed Agent session and return its id without waiting for a reply.
70
+
71
+
#### Input
72
+
73
+
| Parameter | Type | Required | Description |
74
+
| --------- | ---- | -------- | ----------- |
75
+
|`agent`| string | Yes | Managed-agent id inside the linked Claude workspace. |
76
+
|`environment`| string | Yes | Environment id inside the linked Claude workspace. |
77
+
|`environmentType`| string | No | Environment execution model hint \('cloud' \| 'self_hosted'\). |
78
+
|`userMessage`| string | No | Optional first message; seeds initial_events and starts the agent immediately. |
79
+
|`vaults`| array | No | Zero or more vault ids for MCP tool auth. |
80
+
|`vaultsAck`| boolean | No | Acknowledgement that the author may use the attached vaults. |
81
+
|`memoryStoreId`| string | No | Optional Agent Memory Store id. |
82
+
|`memoryAccess`| string | No | Memory store access mode: 'read_write' \(default\) or 'read_only'. |
83
+
|`memoryInstructions`| string | No | Per-attachment guidance for how the agent should use the memory store. |
84
+
|`files`| array | No | File attachments \(cloud envs only\), as \[\{fileId, mountPath?\}\]. |
85
+
|`sessionParameters`| object | No | Key/value session metadata forwarded to the session. |
86
+
87
+
#### Output
88
+
89
+
| Parameter | Type | Description |
90
+
| --------- | ---- | ----------- |
91
+
|`sessionId`| string | Anthropic session id \(sesn_...\). |
92
+
|`started`| boolean | True when a first message was seeded, so the agent is already running. |
93
+
94
+
### `managed_agent_send_message`
95
+
96
+
Send a user message to an existing Claude Platform Managed Agent session.
97
+
98
+
#### Input
99
+
100
+
| Parameter | Type | Required | Description |
101
+
| --------- | ---- | -------- | ----------- |
102
+
|`userMessage`| string | Yes | The user message to send to the session. |
103
+
104
+
#### Output
105
+
106
+
| Parameter | Type | Description |
107
+
| --------- | ---- | ----------- |
108
+
|`sessionId`| string | The session the message was sent to. |
109
+
|`sent`| boolean | True when the event was accepted by the API. |
110
+
111
+
### `managed_agent_get_session`
112
+
113
+
Read a Managed Agent session: status, stop reason, token usage, metadata, and any tool calls awaiting approval.
114
+
115
+
#### Input
116
+
117
+
| Parameter | Type | Required | Description |
118
+
| --------- | ---- | -------- | ----------- |
119
+
120
+
#### Output
121
+
122
+
| Parameter | Type | Description |
123
+
| --------- | ---- | ----------- |
124
+
|`sessionId`| string | The session that was read. |
125
+
|`status`| string | Session status — 'idle', 'running', 'rescheduling', or 'terminated'. |
126
+
|`stopReason`| string | Why the session last stopped, e.g. 'end_turn' or 'requires_action'. |
127
+
|`requiresAction`| boolean | True when the session is waiting on a tool confirmation or custom tool result. If this is true while pendingTools is empty, the session is blocked but the API named no blocking events — surface it rather than treating the session as done. |
128
+
|`pendingTools`| json | Blocking tool calls — \[\{id, eventType, kind, name, input\}\]. Route by kind: 'confirmation' ids go to Respond To Tool Confirmation, 'custom_tool_result' ids go to Respond To Custom Tool. |
129
+
|`metadata`| json | Session metadata. |
130
+
|`title`| string | Session title. |
131
+
|`inputTokens`| number | Cumulative input tokens. |
132
+
|`outputTokens`| number | Cumulative output tokens. |
133
+
134
+
### `managed_agent_list_events`
135
+
136
+
Read a Managed Agent session's event history and the agent's reply text.
137
+
138
+
#### Input
139
+
140
+
| Parameter | Type | Required | Description |
141
+
| --------- | ---- | -------- | ----------- |
142
+
|`eventTypes`| array | No | Optional event-type filter, e.g. \['agent.message'\]. Omit to return every event. |
143
+
|`limit`| number | No | Maximum events to return, keeping the most recent \(default 500\). |
144
+
145
+
#### Output
146
+
147
+
| Parameter | Type | Description |
148
+
| --------- | ---- | ----------- |
149
+
|`sessionId`| string | The session that was read. |
150
+
|`events`| json | Session events, oldest first. |
151
+
|`count`| number | Number of events returned. |
152
+
|`assistantText`| string | Concatenated text of every persisted agent.message, in order. |
153
+
|`truncated`| boolean | True when the limit was hit and older events were dropped. |
154
+
155
+
### `managed_agent_update_session`
156
+
157
+
Update a Managed Agent session's title or metadata.
158
+
159
+
#### Input
160
+
161
+
| Parameter | Type | Required | Description |
162
+
| --------- | ---- | -------- | ----------- |
163
+
|`title`| string | No | New session title. |
164
+
|`sessionParameters`| object | No | Replacement metadata map \(replaces all stored metadata, not merged\). Leaving it empty leaves the stored metadata unchanged — use clearMetadata to remove it. |
165
+
|`clearMetadata`| boolean | No | Removes all of the session's stored metadata. Overrides any map supplied above. |
166
+
167
+
#### Output
168
+
169
+
| Parameter | Type | Description |
170
+
| --------- | ---- | ----------- |
171
+
|`sessionId`| string | The session that was updated. |
172
+
|`updated`| boolean | True when the update was accepted. |
173
+
|`metadata`| json | Metadata after the update. |
174
+
|`title`| string | Title after the update. |
175
+
176
+
### `managed_agent_interrupt_session`
177
+
178
+
Stop a running Managed Agent session; it stays usable afterwards.
179
+
180
+
#### Input
181
+
182
+
| Parameter | Type | Required | Description |
183
+
| --------- | ---- | -------- | ----------- |
184
+
185
+
#### Output
186
+
187
+
| Parameter | Type | Description |
188
+
| --------- | ---- | ----------- |
189
+
|`sessionId`| string | The session that was interrupted. |
190
+
|`interrupted`| boolean | True when the interrupt was accepted. |
191
+
192
+
### `managed_agent_respond_tool_confirmation`
193
+
194
+
Allow or deny the tool calls a Managed Agent session is waiting on before it can continue.
195
+
196
+
#### Input
197
+
198
+
| Parameter | Type | Required | Description |
199
+
| --------- | ---- | -------- | ----------- |
200
+
|`toolUseIds`| array | Yes | Blocking tool-use EVENT ids, from Get Session pendingTools\[\].id where kind is 'confirmation' \(not toolu_ ids\). |
201
+
|`decision`| string | Yes | 'allow' to let the tools run, or 'deny' to reject them. |
202
+
|`denyMessage`| string | No | Reason surfaced to the agent. Only sent when the decision is deny. |
203
+
204
+
#### Output
205
+
206
+
| Parameter | Type | Description |
207
+
| --------- | ---- | ----------- |
208
+
|`sessionId`| string | The session that was answered. |
209
+
|`decision`| string | The decision applied — 'allow' or 'deny'. |
210
+
|`confirmedToolUseIds`| json | The tool-use event ids that were answered. |
211
+
212
+
### `managed_agent_respond_custom_tool`
213
+
214
+
Return the result of a custom tool a Managed Agent session is waiting on so it can continue.
215
+
216
+
#### Input
217
+
218
+
| Parameter | Type | Required | Description |
219
+
| --------- | ---- | -------- | ----------- |
220
+
|`customToolUseId`| string | Yes | The custom tool-use EVENT id being answered, from Get Session pendingTools\[\].id where kind is 'custom_tool_result'. |
221
+
|`result`| string | Yes | The tool's output, returned to the agent as text. |
222
+
|`isError`| boolean | No | Mark the result as a failure so the agent can adjust its approach. |
223
+
224
+
#### Output
225
+
226
+
| Parameter | Type | Description |
227
+
| --------- | ---- | ----------- |
228
+
|`sessionId`| string | The session that was answered. |
229
+
|`answeredToolUseId`| string | The custom tool-use event id that was answered. |
230
+
231
+
### `managed_agent_archive_session`
232
+
233
+
Archive a Managed Agent session, preserving its history. Not reversible.
234
+
235
+
#### Input
236
+
237
+
| Parameter | Type | Required | Description |
238
+
| --------- | ---- | -------- | ----------- |
239
+
240
+
#### Output
241
+
242
+
| Parameter | Type | Description |
243
+
| --------- | ---- | ----------- |
244
+
|`sessionId`| string | The session that was archived. |
245
+
|`archived`| boolean | True when the archive was accepted. |
246
+
247
+
### `managed_agent_delete_session`
248
+
249
+
Permanently delete a Managed Agent session, its events, and its sandbox. Not reversible.
250
+
251
+
#### Input
252
+
253
+
| Parameter | Type | Required | Description |
254
+
| --------- | ---- | -------- | ----------- |
255
+
256
+
#### Output
257
+
258
+
| Parameter | Type | Description |
259
+
| --------- | ---- | ----------- |
260
+
|`sessionId`| string | The session that was deleted. |
261
+
|`deleted`| boolean | True when the delete was accepted. |
|`COPILOT_API_KEY`| API key for copilot features |
67
+
|`COPILOT_API_KEY`| API key for Chat. Without it the Sim Chat block, scheduled prompt jobs, and Inbox cannot run |
68
+
|`NEXT_PUBLIC_CHAT_DISABLED`| Set to `true` to hide the Chat module: the workspace lands on your first workflow, with no chats list, scheduled tasks, or editor Chat panel. Chat is shown when unset; `bun run setup` sets it for you if you skip the chat key |
68
69
|`ADMIN_API_KEY`| Admin API key for GitOps operations |
69
70
|`ALLOWED_LOGIN_DOMAINS`| Restrict signups to domains (comma-separated) |
70
71
|`ALLOWED_LOGIN_EMAILS`| Restrict signups to specific emails (comma-separated) |
0 commit comments