-
Notifications
You must be signed in to change notification settings - Fork 279
Expand file tree
/
Copy pathschema.json
More file actions
4300 lines (4300 loc) · 176 KB
/
Copy pathschema.json
File metadata and controls
4300 lines (4300 loc) · 176 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Agent Client Protocol",
"anyOf": [
{
"title": "Agent",
"description": "A message (request, response, or notification) with `\"jsonrpc\": \"2.0\"` specified as\n[required by JSON-RPC 2.0 Specification][1].\n\n[1]: https://www.jsonrpc.org/specification#compatibility",
"type": "object",
"properties": {
"jsonrpc": {
"type": "string",
"enum": ["2.0"]
}
},
"required": ["jsonrpc"],
"anyOf": [
{
"title": "Request",
"allOf": [
{
"$ref": "#/$defs/AgentRequest"
}
]
},
{
"title": "Response",
"allOf": [
{
"$ref": "#/$defs/AgentResponse"
}
]
},
{
"title": "Notification",
"allOf": [
{
"$ref": "#/$defs/AgentNotification"
}
]
}
]
},
{
"title": "Client",
"description": "A message (request, response, or notification) with `\"jsonrpc\": \"2.0\"` specified as\n[required by JSON-RPC 2.0 Specification][1].\n\n[1]: https://www.jsonrpc.org/specification#compatibility",
"type": "object",
"properties": {
"jsonrpc": {
"type": "string",
"enum": ["2.0"]
}
},
"required": ["jsonrpc"],
"anyOf": [
{
"title": "Request",
"allOf": [
{
"$ref": "#/$defs/ClientRequest"
}
]
},
{
"title": "Response",
"allOf": [
{
"$ref": "#/$defs/ClientResponse"
}
]
},
{
"title": "Notification",
"allOf": [
{
"$ref": "#/$defs/ClientNotification"
}
]
}
]
}
],
"$defs": {
"AgentRequest": {
"description": "A JSON-RPC request object.",
"type": "object",
"properties": {
"id": {
"description": "The request id used to correlate the matching response.",
"allOf": [
{
"$ref": "#/$defs/RequestId"
}
]
},
"method": {
"description": "The method name to invoke.",
"type": "string"
},
"params": {
"description": "Method-specific request parameters.",
"anyOf": [
{
"description": "All possible requests that an agent can send to a client.\n\nThis enum is used internally for routing RPC requests. You typically won't need\nto use this directly.\n\nThis enum encompasses all method calls from agent to client.",
"anyOf": [
{
"title": "WriteTextFileRequest",
"description": "Writes content to a text file in the client's file system.\n\nOnly available if the client advertises the `fs.writeTextFile` capability.\nAllows the agent to create or modify files within the client's environment.\n\nSee protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)",
"allOf": [
{
"$ref": "#/$defs/WriteTextFileRequest"
}
]
},
{
"title": "ReadTextFileRequest",
"description": "Reads content from a text file in the client's file system.\n\nOnly available if the client advertises the `fs.readTextFile` capability.\nAllows the agent to access file contents within the client's environment.\n\nSee protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)",
"allOf": [
{
"$ref": "#/$defs/ReadTextFileRequest"
}
]
},
{
"title": "RequestPermissionRequest",
"description": "Requests permission from the user for a tool call operation.\n\nCalled by the agent when it needs user authorization before executing\na potentially sensitive operation. The client should present the options\nto the user and return their decision.\n\nIf the client cancels the prompt turn via `session/cancel`, it MUST\nrespond to this request with `RequestPermissionOutcome::Cancelled`.\n\nSee protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/tool-calls#requesting-permission)",
"allOf": [
{
"$ref": "#/$defs/RequestPermissionRequest"
}
]
},
{
"title": "CreateTerminalRequest",
"description": "Executes a command in a new terminal\n\nOnly available if the `terminal` Client capability is set to `true`.\n\nReturns a `TerminalId` that can be used with other terminal methods\nto get the current output, wait for exit, and kill the command.\n\nThe `TerminalId` can also be used to embed the terminal in a tool call\nby using the `ToolCallContent::Terminal` variant.\n\nThe Agent is responsible for releasing the terminal by using the `terminal/release`\nmethod.\n\nSee protocol docs: [Terminals](https://agentclientprotocol.com/protocol/terminals)",
"allOf": [
{
"$ref": "#/$defs/CreateTerminalRequest"
}
]
},
{
"title": "TerminalOutputRequest",
"description": "Gets the terminal output and exit status\n\nReturns the current content in the terminal without waiting for the command to exit.\nIf the command has already exited, the exit status is included.\n\nSee protocol docs: [Terminals](https://agentclientprotocol.com/protocol/terminals)",
"allOf": [
{
"$ref": "#/$defs/TerminalOutputRequest"
}
]
},
{
"title": "ReleaseTerminalRequest",
"description": "Releases a terminal\n\nThe command is killed if it hasn't exited yet. Use `terminal/wait_for_exit`\nto wait for the command to exit before releasing the terminal.\n\nAfter release, the `TerminalId` can no longer be used with other `terminal/*` methods,\nbut tool calls that already contain it, continue to display its output.\n\nThe `terminal/kill` method can be used to terminate the command without releasing\nthe terminal, allowing the Agent to call `terminal/output` and other methods.\n\nSee protocol docs: [Terminals](https://agentclientprotocol.com/protocol/terminals)",
"allOf": [
{
"$ref": "#/$defs/ReleaseTerminalRequest"
}
]
},
{
"title": "WaitForTerminalExitRequest",
"description": "Waits for the terminal command to exit and return its exit status\n\nSee protocol docs: [Terminals](https://agentclientprotocol.com/protocol/terminals)",
"allOf": [
{
"$ref": "#/$defs/WaitForTerminalExitRequest"
}
]
},
{
"title": "KillTerminalRequest",
"description": "Kills the terminal command without releasing the terminal\n\nWhile `terminal/release` will also kill the command, this method will keep\nthe `TerminalId` valid so it can be used with other methods.\n\nThis method can be helpful when implementing command timeouts which terminate\nthe command as soon as elapsed, and then get the final output so it can be sent\nto the model.\n\nNote: Call `terminal/release` when `TerminalId` is no longer needed.\n\nSee protocol docs: [Terminals](https://agentclientprotocol.com/protocol/terminals)",
"allOf": [
{
"$ref": "#/$defs/KillTerminalRequest"
}
]
},
{
"title": "ExtMethodRequest",
"description": "Handles extension method requests from the agent.\n\nAllows the Agent to send an arbitrary request that is not part of the ACP spec.\nExtension methods provide a way to add custom functionality while maintaining\nprotocol compatibility.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"allOf": [
{
"$ref": "#/$defs/ExtRequest"
}
]
}
]
},
{
"type": "null"
}
]
}
},
"required": ["id", "method"],
"x-docs-ignore": true
},
"RequestId": {
"description": "JSON RPC Request Id\n\nAn identifier established by the Client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification. The value SHOULD normally not be Null \\[1\\] and Numbers SHOULD NOT contain fractional parts \\[2\\]\n\nThe Server MUST reply with the same value in the Response object if included. This member is used to correlate the context between the two objects.\n\n\\[1\\] The use of Null as a value for the id member in a Request object is discouraged, because this specification uses a value of Null for Responses with an unknown id. Also, because JSON-RPC 1.0 uses an id value of Null for Notifications this could cause confusion in handling.\n\n\\[2\\] Fractional parts may be problematic, since many decimal fractions cannot be represented exactly as binary fractions.",
"anyOf": [
{
"title": "Null",
"description": "The JSON-RPC `null` request id.",
"type": "null"
},
{
"title": "Number",
"description": "A numeric JSON-RPC request id.",
"type": "integer",
"format": "int64"
},
{
"title": "Str",
"description": "A string JSON-RPC request id.",
"type": "string"
}
]
},
"WriteTextFileRequest": {
"description": "Request to write content to a text file.\n\nOnly available if the client supports the `fs.writeTextFile` capability.",
"type": "object",
"properties": {
"sessionId": {
"description": "The session ID for this request.",
"allOf": [
{
"$ref": "#/$defs/SessionId"
}
]
},
"path": {
"description": "Absolute path to the file to write.",
"type": "string"
},
"content": {
"description": "The text content to write to the file.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["sessionId", "path", "content"],
"x-side": "client",
"x-method": "fs/write_text_file"
},
"SessionId": {
"description": "A unique identifier for a conversation session between a client and agent.\n\nSessions maintain their own context, conversation history, and state,\nallowing multiple independent interactions with the same agent.\n\nSee protocol docs: [Session ID](https://agentclientprotocol.com/protocol/session-setup#session-id)",
"type": "string"
},
"ReadTextFileRequest": {
"description": "Request to read content from a text file.\n\nOnly available if the client supports the `fs.readTextFile` capability.",
"type": "object",
"properties": {
"sessionId": {
"description": "The session ID for this request.",
"allOf": [
{
"$ref": "#/$defs/SessionId"
}
]
},
"path": {
"description": "Absolute path to the file to read.",
"type": "string"
},
"line": {
"description": "Line number to start reading from (1-based).",
"type": ["integer", "null"],
"format": "uint32",
"minimum": 0
},
"limit": {
"description": "Maximum number of lines to read.",
"type": ["integer", "null"],
"format": "uint32",
"minimum": 0
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["sessionId", "path"],
"x-side": "client",
"x-method": "fs/read_text_file"
},
"RequestPermissionRequest": {
"description": "Request for user permission to execute a tool call.\n\nSent when the agent needs authorization before performing a sensitive operation.\n\nSee protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/tool-calls#requesting-permission)",
"type": "object",
"properties": {
"sessionId": {
"description": "The session ID for this request.",
"allOf": [
{
"$ref": "#/$defs/SessionId"
}
]
},
"toolCall": {
"description": "Details about the tool call requiring permission.",
"allOf": [
{
"$ref": "#/$defs/ToolCallUpdate"
}
]
},
"options": {
"description": "Available permission options for the user to choose from.",
"type": "array",
"items": {
"$ref": "#/$defs/PermissionOption"
}
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["sessionId", "toolCall", "options"],
"x-side": "client",
"x-method": "session/request_permission"
},
"ToolCallUpdate": {
"description": "An update to an existing tool call.\n\nUsed to report progress and results as tools execute. All fields except\nthe tool call ID are optional - only changed fields need to be included.\n\nSee protocol docs: [Updating](https://agentclientprotocol.com/protocol/tool-calls#updating)",
"type": "object",
"properties": {
"toolCallId": {
"description": "The ID of the tool call being updated.",
"allOf": [
{
"$ref": "#/$defs/ToolCallId"
}
]
},
"kind": {
"description": "Update the tool kind.",
"anyOf": [
{
"$ref": "#/$defs/ToolKind"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"status": {
"description": "Update the execution status.",
"anyOf": [
{
"$ref": "#/$defs/ToolCallStatus"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"title": {
"description": "Update the human-readable title.",
"type": ["string", "null"]
},
"content": {
"description": "Replace the content collection.",
"type": ["array", "null"],
"items": {
"$ref": "#/$defs/ToolCallContent"
},
"x-deserialize-default-on-error": true,
"x-deserialize-skip-invalid-items": true
},
"locations": {
"description": "Replace the locations collection.",
"type": ["array", "null"],
"items": {
"$ref": "#/$defs/ToolCallLocation"
},
"x-deserialize-default-on-error": true,
"x-deserialize-skip-invalid-items": true
},
"rawInput": {
"description": "Update the raw input."
},
"rawOutput": {
"description": "Update the raw output."
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["toolCallId"]
},
"ToolCallId": {
"description": "Unique identifier for a tool call within a session.",
"type": "string"
},
"ToolKind": {
"description": "Categories of tools that can be invoked.\n\nTool kinds help clients choose appropriate icons and optimize how they\ndisplay tool execution progress.\n\nSee protocol docs: [Creating](https://agentclientprotocol.com/protocol/tool-calls#creating)",
"oneOf": [
{
"description": "Reading files or data.",
"type": "string",
"const": "read"
},
{
"description": "Modifying files or content.",
"type": "string",
"const": "edit"
},
{
"description": "Removing files or data.",
"type": "string",
"const": "delete"
},
{
"description": "Moving or renaming files.",
"type": "string",
"const": "move"
},
{
"description": "Searching for information.",
"type": "string",
"const": "search"
},
{
"description": "Running commands or code.",
"type": "string",
"const": "execute"
},
{
"description": "Internal reasoning or planning.",
"type": "string",
"const": "think"
},
{
"description": "Retrieving external data.",
"type": "string",
"const": "fetch"
},
{
"description": "Switching the current session mode.",
"type": "string",
"const": "switch_mode"
},
{
"description": "Other tool types (default).",
"type": "string",
"const": "other"
}
]
},
"ToolCallStatus": {
"description": "Execution status of a tool call.\n\nTool calls progress through different statuses during their lifecycle.\n\nSee protocol docs: [Status](https://agentclientprotocol.com/protocol/tool-calls#status)",
"oneOf": [
{
"description": "The tool call hasn't started running yet because the input is either\nstreaming or we're awaiting approval.",
"type": "string",
"const": "pending"
},
{
"description": "The tool call is currently running.",
"type": "string",
"const": "in_progress"
},
{
"description": "The tool call completed successfully.",
"type": "string",
"const": "completed"
},
{
"description": "The tool call failed with an error.",
"type": "string",
"const": "failed"
}
]
},
"ToolCallContent": {
"description": "Content produced by a tool call.\n\nTool calls can produce different types of content including\nstandard content blocks (text, images) or file diffs.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/tool-calls#content)",
"oneOf": [
{
"description": "Standard content block (text, images, resources).",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "content"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/Content"
}
]
},
{
"description": "File modification shown as a diff.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "diff"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/Diff"
}
]
},
{
"description": "Embed a terminal created with `terminal/create` by its id.\n\nThe terminal must be added before calling `terminal/release`.\n\nSee protocol docs: [Terminal](https://agentclientprotocol.com/protocol/terminals)",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "terminal"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/Terminal"
}
]
}
],
"discriminator": {
"propertyName": "type"
}
},
"ContentBlock": {
"description": "Content blocks represent displayable information in the Agent Client Protocol.\n\nThey provide a structured way to handle various types of user-facing content—whether\nit's text from language models, images for analysis, or embedded resources for context.\n\nContent blocks appear in:\n- User prompts sent via `session/prompt`\n- Language model output streamed through `session/update` notifications\n- Progress updates and results from tool calls\n\nThis structure is compatible with the Model Context Protocol (MCP), enabling\nagents to seamlessly forward content from MCP tool outputs without transformation.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/content)",
"oneOf": [
{
"description": "Text content. May be plain text or formatted with Markdown.\n\nAll agents MUST support text content blocks in prompts.\nClients SHOULD render this text as Markdown.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/TextContent"
}
]
},
{
"description": "Images for visual context or analysis.\n\nRequires the `image` prompt capability when included in prompts.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "image"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/ImageContent"
}
]
},
{
"description": "Audio data for transcription or analysis.\n\nRequires the `audio` prompt capability when included in prompts.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "audio"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/AudioContent"
}
]
},
{
"description": "References to resources that the agent can access.\n\nAll agents MUST support resource links in prompts.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "resource_link"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/ResourceLink"
}
]
},
{
"description": "Complete resource contents embedded directly in the message.\n\nPreferred for including context as it avoids extra round-trips.\n\nRequires the `embeddedContext` prompt capability when included in prompts.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "resource"
}
},
"required": ["type"],
"allOf": [
{
"$ref": "#/$defs/EmbeddedResource"
}
]
}
],
"discriminator": {
"propertyName": "type"
}
},
"Annotations": {
"description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",
"type": "object",
"properties": {
"audience": {
"description": "Intended recipients for this content, such as the user or assistant.",
"type": ["array", "null"],
"items": {
"$ref": "#/$defs/Role"
},
"x-deserialize-default-on-error": true,
"x-deserialize-skip-invalid-items": true
},
"lastModified": {
"description": "Timestamp indicating when the underlying resource was last modified.",
"type": ["string", "null"]
},
"priority": {
"description": "Relative importance of this content when clients choose what to surface.",
"type": ["number", "null"],
"format": "double"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
}
},
"Role": {
"description": "The sender or recipient of messages and data in a conversation.",
"oneOf": [
{
"description": "The assistant side of a conversation.",
"type": "string",
"const": "assistant"
},
{
"description": "The user side of a conversation.",
"type": "string",
"const": "user"
}
]
},
"TextContent": {
"description": "Text provided to or from an LLM.",
"type": "object",
"properties": {
"annotations": {
"description": "Optional annotations that help clients decide how to display or route this content.",
"anyOf": [
{
"$ref": "#/$defs/Annotations"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"text": {
"description": "Text payload carried by this content block.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["text"]
},
"ImageContent": {
"description": "An image provided to or from an LLM.",
"type": "object",
"properties": {
"annotations": {
"description": "Optional annotations that help clients decide how to display or route this content.",
"anyOf": [
{
"$ref": "#/$defs/Annotations"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"data": {
"description": "Base64-encoded media payload.",
"type": "string"
},
"mimeType": {
"description": "MIME type describing the encoded media payload.",
"type": "string"
},
"uri": {
"description": "URI associated with this resource or media payload.",
"type": ["string", "null"]
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["data", "mimeType"]
},
"AudioContent": {
"description": "Audio provided to or from an LLM.",
"type": "object",
"properties": {
"annotations": {
"description": "Optional annotations that help clients decide how to display or route this content.",
"anyOf": [
{
"$ref": "#/$defs/Annotations"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"data": {
"description": "Base64-encoded media payload.",
"type": "string"
},
"mimeType": {
"description": "MIME type describing the encoded media payload.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["data", "mimeType"]
},
"ResourceLink": {
"description": "A resource that the server is capable of reading, included in a prompt or tool call result.",
"type": "object",
"properties": {
"annotations": {
"description": "Optional annotations that help clients decide how to display or route this content.",
"anyOf": [
{
"$ref": "#/$defs/Annotations"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"description": {
"description": "Optional human-readable details shown with this protocol object.",
"type": ["string", "null"]
},
"mimeType": {
"description": "MIME type describing the encoded media payload.",
"type": ["string", "null"]
},
"name": {
"description": "Human-readable name shown for this protocol object.",
"type": "string"
},
"size": {
"description": "Optional size of the linked resource in bytes, if known.",
"type": ["integer", "null"],
"format": "int64"
},
"title": {
"description": "Optional display title for end-user UI.",
"type": ["string", "null"]
},
"uri": {
"description": "URI associated with this resource or media payload.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["name", "uri"]
},
"EmbeddedResourceResource": {
"description": "Resource content that can be embedded in a message.",
"anyOf": [
{
"title": "TextResourceContents",
"description": "Text resource contents embedded directly in the message.",
"allOf": [
{
"$ref": "#/$defs/TextResourceContents"
}
]
},
{
"title": "BlobResourceContents",
"description": "Binary resource contents embedded directly in the message.",
"allOf": [
{
"$ref": "#/$defs/BlobResourceContents"
}
]
}
]
},
"TextResourceContents": {
"description": "Text-based resource contents.",
"type": "object",
"properties": {
"mimeType": {
"description": "MIME type describing the encoded media payload.",
"type": ["string", "null"]
},
"text": {
"description": "Text payload carried by this content block.",
"type": "string"
},
"uri": {
"description": "URI associated with this resource or media payload.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["text", "uri"]
},
"BlobResourceContents": {
"description": "Binary resource contents.",
"type": "object",
"properties": {
"blob": {
"description": "Base64-encoded bytes for a binary resource payload.",
"type": "string"
},
"mimeType": {
"description": "MIME type describing the encoded media payload.",
"type": ["string", "null"]
},
"uri": {
"description": "URI associated with this resource or media payload.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["blob", "uri"]
},
"EmbeddedResource": {
"description": "The contents of a resource, embedded into a prompt or tool call result.",
"type": "object",
"properties": {
"annotations": {
"description": "Optional annotations that help clients decide how to display or route this content.",
"anyOf": [
{
"$ref": "#/$defs/Annotations"
},
{
"type": "null"
}
],
"x-deserialize-default-on-error": true
},
"resource": {
"description": "Embedded resource payload, either text or binary data.",
"allOf": [
{
"$ref": "#/$defs/EmbeddedResourceResource"
}
]
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["resource"]
},
"Content": {
"description": "Standard content block (text, images, resources).",
"type": "object",
"properties": {
"content": {
"description": "The actual content block.",
"allOf": [
{
"$ref": "#/$defs/ContentBlock"
}
]
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["content"]
},
"Diff": {
"description": "A diff representing file modifications.\n\nShows changes to files in a format suitable for display in the client UI.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/tool-calls#content)",
"type": "object",
"properties": {
"path": {
"description": "The file path being modified.",
"type": "string"
},
"oldText": {
"description": "The original content (None for new files).",
"type": ["string", "null"]
},
"newText": {
"description": "The new content after modification.",
"type": "string"
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["path", "newText"]
},
"TerminalId": {
"description": "Typed identifier used for terminal values on the wire.",
"type": "string"
},
"Terminal": {
"description": "Embed a terminal created with `terminal/create` by its id.\n\nThe terminal must be added before calling `terminal/release`.\n\nSee protocol docs: [Terminal](https://agentclientprotocol.com/protocol/terminals)",
"type": "object",
"properties": {
"terminalId": {
"description": "Identifier of the terminal instance to embed in the content stream.",
"allOf": [
{
"$ref": "#/$defs/TerminalId"
}
]
},
"_meta": {
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
"type": ["object", "null"],
"additionalProperties": true
}
},
"required": ["terminalId"]
},
"ToolCallLocation": {
"description": "A file location being accessed or modified by a tool.\n\nEnables clients to implement \"follow-along\" features that track\nwhich files the agent is working with in real-time.\n\nSee protocol docs: [Following the Agent](https://agentclientprotocol.com/protocol/tool-calls#following-the-agent)",
"type": "object",
"properties": {
"path": {
"description": "The file path being accessed or modified.",
"type": "string"
},
"line": {
"description": "Optional line number within the file.",
"type": ["integer", "null"],
"format": "uint32",
"minimum": 0
},