-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathagent-schema.json
More file actions
1460 lines (1460 loc) · 47.9 KB
/
agent-schema.json
File metadata and controls
1460 lines (1460 loc) · 47.9 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": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/cagent/cagent/blob/main/agent-schema.json",
"title": "Cagent Configuration",
"description": "Configuration schema for Cagent v5",
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Configuration version",
"enum": [
"0",
"1",
"2",
"3",
"4",
"5",
"6"
],
"examples": [
"0",
"1",
"2",
"3",
"4",
"5",
"6"
]
},
"providers": {
"type": "object",
"description": "Map of custom provider configurations. Providers define reusable defaults (base_url, token_key, api_type) that models can reference.",
"additionalProperties": {
"$ref": "#/definitions/ProviderConfig"
}
},
"agents": {
"type": "object",
"description": "Map of agent configurations",
"additionalProperties": {
"$ref": "#/definitions/AgentConfig"
}
},
"models": {
"type": "object",
"description": "Map of model configurations",
"additionalProperties": {
"$ref": "#/definitions/ModelConfig"
}
},
"rag": {
"type": "object",
"description": "Map of RAG (Retrieval-Augmented Generation) configurations",
"additionalProperties": {
"$ref": "#/definitions/RAGConfig"
}
},
"metadata": {
"$ref": "#/definitions/Metadata",
"description": "Configuration metadata"
},
"permissions": {
"$ref": "#/definitions/PermissionsConfig",
"description": "Tool permission configuration for controlling tool approval behavior"
}
},
"additionalProperties": false,
"definitions": {
"ProviderConfig": {
"type": "object",
"description": "Configuration for a custom model provider. Can be used for custom gateways",
"properties": {
"api_type": {
"type": "string",
"description": "The API schema type to use. Determines which API schema to use.",
"enum": [
"openai_chatcompletions",
"openai_responses"
],
"default": "openai_chatcompletions",
"examples": [
"openai_chatcompletions",
"openai_responses"
]
},
"base_url": {
"type": "string",
"description": "Base URL for the provider's API endpoint (required)",
"format": "uri",
"examples": [
"https://router.example.com/v1"
]
},
"token_key": {
"type": "string",
"description": "Environment variable name containing the API token. If not set, requests will be sent without authentication.",
"examples": [
"CUSTOM_PROVIDER_API_KEY"
]
}
},
"required": [
"base_url"
],
"additionalProperties": false
},
"AgentConfig": {
"type": "object",
"description": "Configuration for a single agent",
"properties": {
"model": {
"type": "string",
"description": "Model to use for this agent (can be just model name or provider/model format)",
"examples": [
"gpt-4",
"openai/gpt-4o",
"anthropic/claude-sonnet-4-0",
"anthropic/claude-sonnet-4-5",
"claude"
]
},
"fallback": {
"$ref": "#/definitions/FallbackConfig",
"description": "Fallback model configuration for automatic failover and retry behavior"
},
"description": {
"type": "string",
"description": "Description of the agent"
},
"welcome_message": {
"type": "string",
"description": "Optional welcome message to display when the agent starts"
},
"toolsets": {
"type": "array",
"description": "List of toolsets available to the agent",
"items": {
"$ref": "#/definitions/Toolset"
}
},
"instruction": {
"type": "string",
"description": "Instructions for the agent"
},
"code_mode_tools": {
"type": "boolean",
"description": "Enable Code Mode for tools"
},
"sub_agents": {
"type": "array",
"description": "List of sub-agents",
"items": {
"type": "string"
}
},
"handoffs": {
"type": "array",
"description": "List of agents this agent can hand off the conversation to",
"items": {
"type": "string"
}
},
"add_date": {
"type": "boolean",
"description": "Whether to add date information"
},
"add_environment_info": {
"type": "boolean",
"description": "Whether to add environment information"
},
"max_iterations": {
"type": "integer",
"description": "Maximum number of iterations",
"minimum": 0
},
"num_history_items": {
"type": "integer",
"description": "Number of history items to keep",
"minimum": 0
},
"add_prompt_files": {
"type": "array",
"description": "List of prompt files to add",
"items": {
"type": "string"
}
},
"commands": {
"description": "Named prompts for /commands. Supports simple string format or advanced object format with description and instruction.",
"oneOf": [
{
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "string",
"description": "Simple command format: the string becomes the instruction"
},
{
"$ref": "#/definitions/CommandConfig"
}
]
}
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "string",
"description": "Simple command format: the string becomes the instruction"
},
{
"$ref": "#/definitions/CommandConfig"
}
]
}
}
}
]
},
"structured_output": {
"type": "object",
"description": "Structured output configuration for constraining model responses to a specific JSON schema. Supported by OpenAI (native) and Google Gemini (native). Anthropic requires prompt engineering or tool-based approaches.",
"properties": {
"name": {
"type": "string",
"description": "Name of the response format schema"
},
"description": {
"type": "string",
"description": "Optional description of what the schema represents"
},
"strict": {
"type": "boolean",
"description": "Enable strict schema adherence (OpenAI only). When true, all properties must be in required array.",
"default": false
},
"schema": {
"type": "object",
"description": "JSON Schema object defining the structure of the response. Must include type, properties, and required fields.",
"required": [
"type",
"properties"
],
"properties": {
"type": {
"type": "string",
"enum": [
"object"
],
"description": "Schema type, must be 'object' for structured outputs"
},
"properties": {
"type": "object",
"description": "Object properties with their schemas",
"additionalProperties": true
},
"required": {
"type": "array",
"description": "List of required property names",
"items": {
"type": "string"
}
},
"additionalProperties": {
"type": "boolean",
"description": "Whether additional properties are allowed",
"default": false
}
},
"additionalProperties": true
}
},
"required": [
"name",
"schema"
],
"additionalProperties": false
},
"rag": {
"type": "array",
"description": "List of RAG sources to use for this agent",
"items": {
"type": "string"
}
},
"add_description_parameter": {
"type": "boolean",
"description": "Whether to add a 'description' parameter to tool calls, allowing the LLM to provide context about why it is calling a tool"
},
"hooks": {
"$ref": "#/definitions/HooksConfig",
"description": "Lifecycle hooks for executing shell commands at various points in the agent's execution"
},
"skills": {
"type": "boolean",
"description": "Enable skills discovery for this agent. When enabled, the agent can discover and load skill files (SKILL.md) from the workspace."
}
},
"additionalProperties": false
},
"CommandConfig": {
"type": "object",
"description": "Advanced command configuration with description and instruction",
"properties": {
"description": {
"type": "string",
"description": "Description shown in completion dialogs and help text"
},
"instruction": {
"type": "string",
"description": "The prompt sent to the agent. Supports bang commands (!`command`) and positional arguments ($1, $2, etc.)"
}
},
"additionalProperties": false
},
"FallbackConfig": {
"type": "object",
"description": "Configuration for fallback model behavior when the primary model fails",
"properties": {
"models": {
"type": "array",
"description": "List of fallback models to try in order if the primary model fails. Each entry can be a model name from the models section or an inline provider/model format (e.g., 'openai/gpt-4o').",
"items": {
"type": "string"
},
"examples": [
[
"anthropic/claude-sonnet-4-0",
"openai/gpt-4o"
],
[
"backup_model",
"openai/gpt-5-mini"
]
]
},
"retries": {
"type": "integer",
"description": "Number of retries per model with exponential backoff for retryable errors (5xx, timeouts). Use 0 or omit for default (2 retries = 3 total attempts per model). Use -1 to disable retries entirely (try each model only once).",
"minimum": -1,
"default": 2
},
"cooldown": {
"type": "string",
"description": "Duration to stick with a successful fallback model before retrying the primary. Only applies after a non-retryable error (e.g., 429 rate limit). Use Go duration format (e.g., '1m', '30s', '2m30s'). Default is '1m'.",
"pattern": "^([0-9]+(ns|us|µs|ms|s|m|h))+$",
"default": "1m",
"examples": [
"1m",
"30s",
"2m30s",
"5m"
]
}
},
"additionalProperties": false
},
"HooksConfig": {
"type": "object",
"description": "Lifecycle hooks configuration for an agent. Hooks allow running shell commands at various points in the agent's execution lifecycle.",
"properties": {
"pre_tool_use": {
"type": "array",
"description": "Hooks that run before a tool is executed. Can allow/deny/modify tool calls.",
"items": {
"$ref": "#/definitions/HookMatcherConfig"
}
},
"post_tool_use": {
"type": "array",
"description": "Hooks that run after a tool completes. Can provide validation or additional context.",
"items": {
"$ref": "#/definitions/HookMatcherConfig"
}
},
"session_start": {
"type": "array",
"description": "Hooks that run when a session begins. Can load context or setup environment.",
"items": {
"$ref": "#/definitions/HookDefinition"
}
},
"session_end": {
"type": "array",
"description": "Hooks that run when a session ends. Can perform cleanup or logging.",
"items": {
"$ref": "#/definitions/HookDefinition"
}
},
"on_user_input": {
"type": "array",
"description": "Hooks that run when the agent needs user input. Can send notifications or log events.",
"items": {
"$ref": "#/definitions/HookDefinition"
}
}
},
"additionalProperties": false
},
"HookMatcherConfig": {
"type": "object",
"description": "Configuration for matching tools and their associated hooks",
"properties": {
"matcher": {
"type": "string",
"description": "Regex pattern to match tool names (e.g., 'shell|edit_file'). Use '*' to match all tools. Case-sensitive.",
"examples": [
"*",
"shell",
"shell|edit_file|write_file",
"mcp__.*"
]
},
"hooks": {
"type": "array",
"description": "Hooks to execute when the matcher matches",
"items": {
"$ref": "#/definitions/HookDefinition"
}
}
},
"required": [
"hooks"
],
"additionalProperties": false
},
"HookDefinition": {
"type": "object",
"description": "Definition of a single hook command",
"properties": {
"type": {
"type": "string",
"description": "Type of hook (currently only 'command' is supported)",
"enum": [
"command"
]
},
"command": {
"type": "string",
"description": "Shell command to execute. Receives JSON input via stdin with tool/session information."
},
"timeout": {
"type": "integer",
"description": "Execution timeout in seconds (default: 60)",
"minimum": 1,
"default": 60
}
},
"required": [
"type",
"command"
],
"additionalProperties": false
},
"ModelConfig": {
"type": "object",
"description": "Configuration for a model",
"properties": {
"provider": {
"type": "string",
"description": "Model provider (e.g., openai, anthropic, dmr)",
"examples": [
"openai",
"anthropic",
"dmr",
"ollama"
]
},
"model": {
"type": "string",
"description": "Model name"
},
"temperature": {
"type": "number",
"description": "Sampling temperature",
"minimum": 0,
"maximum": 2
},
"max_tokens": {
"type": "integer",
"description": "Maximum number of tokens",
"minimum": 1
},
"top_p": {
"type": "number",
"description": "Top-p sampling parameter",
"minimum": 0,
"maximum": 1
},
"frequency_penalty": {
"type": "number",
"description": "Frequency penalty",
"minimum": -2,
"maximum": 2
},
"presence_penalty": {
"type": "number",
"description": "Presence penalty",
"minimum": -2,
"maximum": 2
},
"base_url": {
"type": "string",
"description": "Base URL for the model API",
"format": "uri"
},
"parallel_tool_calls": {
"type": "boolean",
"description": "Whether to enable parallel tool calls"
},
"token_key": {
"type": "string",
"description": "Token key for authentication"
},
"provider_opts": {
"type": "object",
"description": "Provider-specific options. dmr: runtime_flags. anthropic/amazon-bedrock (Claude): interleaved_thinking (boolean, default true). openai/anthropic/google: rerank_prompt (string) to fully override the system prompt used for RAG reranking (advanced - prefer using results.reranking.criteria for domain-specific guidance).",
"additionalProperties": true
},
"track_usage": {
"type": "boolean",
"description": "Whether to track usage"
},
"thinking_budget": {
"description": "Controls reasoning effort/budget. Use 'none' or 0 to disable thinking. OpenAI: string levels ('minimal','low','medium','high'), default 'medium'. Anthropic: integer token budget (1024-32768), default 8192. Amazon Bedrock (Claude): same as Anthropic. Google Gemini 2.5: integer token budget (-1 for dynamic, 0 to disable, 24576 max), default -1. Google Gemini 3: string levels ('minimal' Flash only,'low','medium','high'), default 'high' for Pro, 'medium' for Flash.",
"oneOf": [
{
"type": "string",
"enum": [
"none",
"minimal",
"low",
"medium",
"high"
],
"description": "Reasoning effort level (OpenAI, Gemini 3). Use 'none' to disable thinking."
},
{
"type": "integer",
"minimum": -1,
"maximum": 32768,
"description": "Token budget for extended thinking (Anthropic, Bedrock Claude, Gemini 2.5). Use 0 to disable thinking."
}
],
"examples": [
"none",
0,
"minimal",
"low",
"medium",
"high",
-1,
1024,
8192,
32768
]
},
"routing": {
"type": "array",
"description": "Routing rules for request-based model selection. When configured, this model becomes a router that selects the best model based on the user's input. The model's provider/model fields define the fallback model.",
"items": {
"$ref": "#/definitions/RoutingRule"
}
}
},
"additionalProperties": false
},
"RoutingRule": {
"type": "object",
"description": "A single routing rule that maps example phrases to a target model",
"properties": {
"model": {
"type": "string",
"description": "Model reference (another model name in the models section or inline spec like 'openai/gpt-4o')"
},
"examples": {
"type": "array",
"description": "Example phrases that should trigger routing to this model",
"items": {
"type": "string"
}
}
},
"required": [
"model",
"examples"
],
"additionalProperties": false
},
"Metadata": {
"type": "object",
"description": "Configuration metadata",
"properties": {
"author": {
"type": "string",
"description": "Author of the configuration"
},
"license": {
"type": "string",
"description": "License for the configuration"
},
"readme": {
"type": "string",
"description": "README or description"
},
"description": {
"type": "string",
"description": "Description of the agent configuration"
},
"version": {
"type": "string",
"description": "Version of the agent configuration (used for OCI registry publishing)"
}
},
"additionalProperties": false
},
"PermissionsConfig": {
"type": "object",
"description": "Tool permission configuration. Controls tool call approval behavior with optional argument matching.",
"properties": {
"allow": {
"type": "array",
"description": "Tool patterns that are auto-approved without user confirmation. Supports tool names with glob patterns (e.g., 'read_*') and argument matching (e.g., 'shell:cmd=ls*' to allow shell commands starting with 'ls'). MCP tools can use qualified names (e.g., 'mcp:github:*').",
"items": {
"type": "string"
},
"examples": [
[
"shell:cmd=ls*",
"shell:cmd=git status*",
"shell:cmd=go test*"
],
[
"mcp:github:get_*",
"mcp:github:list_*"
],
[
"think",
"create_todo*",
"list_todos"
]
]
},
"ask": {
"type": "array",
"description": "Tool patterns that always require user confirmation, even for tools that are normally auto-approved (e.g. read-only tools). Supports the same pattern syntax as allow: tool names with globs and argument matching (e.g., 'fetch' to always ask before fetching URLs).",
"items": {
"type": "string"
},
"examples": [
[
"fetch"
],
[
"mcp:github:get_*"
]
]
},
"deny": {
"type": "array",
"description": "Tool patterns that are always rejected. Takes priority over allow patterns. Supports the same pattern syntax as allow: tool names with globs and argument matching (e.g., 'shell:cmd=rm -rf*' to block dangerous rm commands).",
"items": {
"type": "string"
},
"examples": [
[
"shell:cmd=rm -rf*",
"shell:cmd=sudo*"
],
[
"shell:cmd=git push --force*",
"shell:cmd=git reset --hard*"
],
[
"mcp:github:delete_*"
]
]
}
},
"additionalProperties": false
},
"Toolset": {
"type": "object",
"description": "Tool configuration",
"properties": {
"type": {
"type": "string",
"description": "Type of tool",
"enum": [
"mcp",
"script",
"think",
"memory",
"filesystem",
"shell",
"tasks",
"todo",
"fetch",
"api",
"a2a",
"lsp",
"user_prompt",
"openapi"
]
},
"instruction": {
"type": "string",
"description": "Additional instruction on how to use this toolset"
},
"toon": {
"type": "string",
"description": "A comma-delimited list of regular expressions of tools to toonify"
},
"ref": {
"type": "string",
"description": "Reference to external tool (e.g., docker:context7)",
"pattern": "^docker:"
},
"config": {
"description": "Tool-specific configuration"
},
"command": {
"type": "string",
"description": "Command to execute for MCP tools"
},
"remote": {
"$ref": "#/definitions/Remote",
"description": "Remote tool configuration"
},
"args": {
"type": "array",
"description": "Arguments for the tool",
"items": {
"type": "string"
}
},
"tools": {
"type": "array",
"description": "List of tools to include",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"description": "Environment variables",
"additionalProperties": {
"type": "string"
}
},
"shared": {
"type": "boolean",
"description": "Whether the tool is shared (for think tool)"
},
"path": {
"type": "string",
"description": "Path for memory tool"
},
"shell": {
"type": "object",
"description": "Shell script configurations (for script tool)",
"patternProperties": {
"^[A-Za-z_][A-Za-z0-9_\\-]*$": {
"$ref": "#/definitions/ScriptShellToolConfig"
}
},
"additionalProperties": false
},
"post_edit": {
"type": "array",
"description": "Post-edit commands for filesystem tool",
"items": {
"$ref": "#/definitions/PostEditConfig"
}
},
"api_config": {
"$ref": "#/definitions/ApiConfig",
"description": "API tool configuration"
},
"ignore_vcs": {
"type": "boolean",
"description": "Whether to ignore VCS files (.git directories and .gitignore patterns) in filesystem operations. Default: true",
"default": true
},
"defer": {
"description": "Enable deferred loading for tools in this toolset. Set to true to defer all tools, or an array of tool names to defer only those tools. Deferred tools are not loaded into the agent's context immediately, but can be discovered and loaded on-demand using search_tool and add_tool.",
"oneOf": [
{
"type": "boolean",
"description": "Set to true to defer all tools"
},
{
"type": "array",
"description": "Array of tool names to defer",
"items": {
"type": "string"
}
}
],
"examples": [
true,
[
"read_file",
"write_file"
]
]
},
"timeout": {
"type": "integer",
"description": "Timeout in seconds for the fetch tool",
"minimum": 1
},
"url": {
"type": "string",
"description": "URL for the a2a or openapi tool",
"format": "uri"
},
"headers": {
"type": "object",
"description": "HTTP headers for API requests (supports ${env.VAR} interpolation)",
"additionalProperties": {
"type": "string"
}
},
"name": {
"type": "string",
"description": "Name for the a2a tool"
},
"sandbox": {
"$ref": "#/definitions/SandboxConfig",
"description": "Sandbox configuration for running shell commands in a Docker container (shell tool only)"
},
"file_types": {
"type": "array",
"description": "File extensions this LSP server handles (e.g., [\".go\", \".mod\"]). Only for lsp toolsets.",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"anyOf": [
{
"allOf": [
{
"properties": {
"type": {
"const": "mcp"
}
}
},
{
"anyOf": [
{
"required": [
"command"
]
},
{
"required": [
"remote"
]
},
{
"required": [
"ref"
]
}
]
}
]
},
{
"properties": {
"type": {
"enum": [
"mcp",
"script",
"think",
"memory",
"filesystem",
"shell",
"tasks",
"todo",
"fetch",
"api",
"a2a",
"lsp",
"user_prompt"
]
}
}
},
{
"allOf": [
{
"properties": {
"type": {
"const": "lsp"
}
}
},
{
"required": [
"command"
]
}
]
},
{
"allOf": [
{
"properties": {
"type": {
"const": "api"
}
}
},
{
"required": [
"api_config"
]
}
]
},
{
"allOf": [
{
"properties": {
"type": {
"const": "a2a"
}
}
},
{
"required": [
"url"
]
}
]
},
{
"allOf": [
{
"properties": {
"type": {
"const": "openapi"
}
}
},
{
"required": [
"url"
]
}
]
}
]
},
"Remote": {
"type": "object",
"description": "Remote tool configuration",
"properties": {
"url": {
"type": "string",
"description": "URL for the remote tool",
"format": "uri"
},
"transport_type": {
"type": "string",
"description": "Transport type for the remote connection"
},
"headers": {
"type": "object",
"description": "HTTP headers for remote requests",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"url"
],
"additionalProperties": false
},
"SandboxConfig": {
"type": "object",
"description": "Configuration for running shell commands inside a sandboxed Docker container",
"properties": {
"image": {
"type": "string",
"description": "Docker image to use for the sandbox container. Defaults to 'alpine:latest' if not specified.",
"examples": [
"alpine:latest",
"ubuntu:22.04",
"python:3.12-alpine",