@parcha/agentrun 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2090 @@
1
+ // Generated by scripts/generate-clients.mjs from the server's OpenAPI document. Do not edit: run node scripts/generate-clients.mjs.
2
+ // SHA-256 of what the table is made of (operationsOf in scripts/generate-clients.mjs): c7162205f4e9389086e88e92f87a13a98cd0f3221d0c7e884bbb85db129c020a
3
+ export const COMMANDS = [
4
+ {
5
+ "command": [
6
+ "agents",
7
+ "archive"
8
+ ],
9
+ "operationId": "archiveAgent",
10
+ "method": "POST",
11
+ "path": "/agents/{agent_id}/archive",
12
+ "pathParams": [
13
+ "agent_id"
14
+ ],
15
+ "multiSegment": [],
16
+ "query": [],
17
+ "headers": [],
18
+ "bodyFlags": [],
19
+ "hasBody": false,
20
+ "bodyRequired": false,
21
+ "bodyTypes": [],
22
+ "secretBody": false,
23
+ "raw": false,
24
+ "summary": "Archive the agent: hidden from the lists, kept with its history"
25
+ },
26
+ {
27
+ "command": [
28
+ "agents",
29
+ "create"
30
+ ],
31
+ "operationId": "createAgent",
32
+ "method": "POST",
33
+ "path": "/agents",
34
+ "pathParams": [],
35
+ "multiSegment": [],
36
+ "query": [],
37
+ "headers": [
38
+ {
39
+ "name": "Idempotency-Key",
40
+ "type": "string",
41
+ "required": false,
42
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
43
+ }
44
+ ],
45
+ "bodyFlags": [
46
+ {
47
+ "name": "note",
48
+ "type": "string",
49
+ "required": false,
50
+ "description": "What the revision changes, kept with it (GET /agents/{agent_id}/revisions)."
51
+ }
52
+ ],
53
+ "hasBody": true,
54
+ "bodyRequired": true,
55
+ "bodyTypes": [
56
+ "application/json"
57
+ ],
58
+ "secretBody": false,
59
+ "raw": false,
60
+ "summary": "Create an agent home"
61
+ },
62
+ {
63
+ "command": [
64
+ "agents",
65
+ "forget-sign-in"
66
+ ],
67
+ "operationId": "forgetSignIn",
68
+ "method": "DELETE",
69
+ "path": "/agents/{agent_id}/sign-ins/{key}",
70
+ "pathParams": [
71
+ "agent_id",
72
+ "key"
73
+ ],
74
+ "multiSegment": [],
75
+ "query": [],
76
+ "headers": [],
77
+ "bodyFlags": [],
78
+ "hasBody": false,
79
+ "bodyRequired": false,
80
+ "bodyTypes": [],
81
+ "secretBody": false,
82
+ "raw": false,
83
+ "summary": "Forget one of the agent's saved sign-ins"
84
+ },
85
+ {
86
+ "command": [
87
+ "agents",
88
+ "get"
89
+ ],
90
+ "operationId": "getAgent",
91
+ "method": "GET",
92
+ "path": "/agents/{agent_id}",
93
+ "pathParams": [
94
+ "agent_id"
95
+ ],
96
+ "multiSegment": [],
97
+ "query": [],
98
+ "headers": [],
99
+ "bodyFlags": [],
100
+ "hasBody": false,
101
+ "bodyRequired": false,
102
+ "bodyTypes": [],
103
+ "secretBody": false,
104
+ "raw": false,
105
+ "summary": "One agent"
106
+ },
107
+ {
108
+ "command": [
109
+ "agents",
110
+ "list"
111
+ ],
112
+ "operationId": "listAgents",
113
+ "method": "GET",
114
+ "path": "/agents",
115
+ "pathParams": [],
116
+ "multiSegment": [],
117
+ "query": [
118
+ {
119
+ "name": "limit",
120
+ "type": "integer",
121
+ "required": false,
122
+ "description": ""
123
+ },
124
+ {
125
+ "name": "cursor",
126
+ "type": "string",
127
+ "required": false,
128
+ "description": "`next_cursor` from the previous page."
129
+ }
130
+ ],
131
+ "headers": [],
132
+ "bodyFlags": [],
133
+ "hasBody": false,
134
+ "bodyRequired": false,
135
+ "bodyTypes": [],
136
+ "secretBody": false,
137
+ "raw": false,
138
+ "summary": "List agents"
139
+ },
140
+ {
141
+ "command": [
142
+ "agents",
143
+ "runs"
144
+ ],
145
+ "operationId": "listRuns",
146
+ "method": "GET",
147
+ "path": "/agents/{agent_id}/runs",
148
+ "pathParams": [
149
+ "agent_id"
150
+ ],
151
+ "multiSegment": [],
152
+ "query": [
153
+ {
154
+ "name": "limit",
155
+ "type": "integer",
156
+ "required": false,
157
+ "description": ""
158
+ },
159
+ {
160
+ "name": "cursor",
161
+ "type": "string",
162
+ "required": false,
163
+ "description": "`next_cursor` from the previous page."
164
+ },
165
+ {
166
+ "name": "status",
167
+ "type": "string",
168
+ "enum": [
169
+ "queued",
170
+ "working",
171
+ "paused",
172
+ "input_required",
173
+ "completed",
174
+ "failed",
175
+ "cancelled"
176
+ ],
177
+ "required": false,
178
+ "description": "Only runs with this status."
179
+ }
180
+ ],
181
+ "headers": [],
182
+ "bodyFlags": [],
183
+ "hasBody": false,
184
+ "bodyRequired": false,
185
+ "bodyTypes": [],
186
+ "secretBody": false,
187
+ "raw": false,
188
+ "summary": "The agent's runs index"
189
+ },
190
+ {
191
+ "command": [
192
+ "agents",
193
+ "unarchive"
194
+ ],
195
+ "operationId": "unarchiveAgent",
196
+ "method": "POST",
197
+ "path": "/agents/{agent_id}/unarchive",
198
+ "pathParams": [
199
+ "agent_id"
200
+ ],
201
+ "multiSegment": [],
202
+ "query": [],
203
+ "headers": [],
204
+ "bodyFlags": [],
205
+ "hasBody": false,
206
+ "bodyRequired": false,
207
+ "bodyTypes": [],
208
+ "secretBody": false,
209
+ "raw": false,
210
+ "summary": "Show the archived agent in the lists again"
211
+ },
212
+ {
213
+ "command": [
214
+ "agents",
215
+ "update"
216
+ ],
217
+ "operationId": "updateDefinition",
218
+ "method": "PUT",
219
+ "path": "/agents/{agent_id}/definition",
220
+ "pathParams": [
221
+ "agent_id"
222
+ ],
223
+ "multiSegment": [],
224
+ "query": [],
225
+ "headers": [
226
+ {
227
+ "name": "If-Match",
228
+ "type": "string",
229
+ "required": false,
230
+ "description": "The home's current ETag (`homeRevision`), as `GET /agents/{agent_id}` returned it. Required with the contract's body; this server's own body (`{definition, skills?, note?}`) may leave it out."
231
+ }
232
+ ],
233
+ "bodyFlags": [],
234
+ "hasBody": true,
235
+ "bodyRequired": true,
236
+ "bodyTypes": [
237
+ "application/json"
238
+ ],
239
+ "secretBody": false,
240
+ "raw": false,
241
+ "summary": "Replace the agent's definition"
242
+ },
243
+ {
244
+ "command": [
245
+ "files",
246
+ "create"
247
+ ],
248
+ "operationId": "createFile",
249
+ "method": "POST",
250
+ "path": "/files",
251
+ "pathParams": [],
252
+ "multiSegment": [],
253
+ "query": [
254
+ {
255
+ "name": "path",
256
+ "type": "string",
257
+ "required": false,
258
+ "description": "With the file's bytes as the body: the file's path (FilePathString). Its presence makes the body the file."
259
+ },
260
+ {
261
+ "name": "content_type",
262
+ "type": "string",
263
+ "required": false,
264
+ "description": "With `path`: the file's type. Absent, the request's own type when it names one (not application/octet-stream, not application/x-www-form-urlencoded), else the path's extension's, else application/octet-stream."
265
+ },
266
+ {
267
+ "name": "sha256",
268
+ "type": "string",
269
+ "required": false,
270
+ "description": "With `path`: the hash the bytes must have (`422 input_invalid` at sha256 when they do not)."
271
+ }
272
+ ],
273
+ "headers": [
274
+ {
275
+ "name": "Idempotency-Key",
276
+ "type": "string",
277
+ "required": false,
278
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
279
+ }
280
+ ],
281
+ "bodyFlags": [
282
+ {
283
+ "name": "size_bytes",
284
+ "type": "integer",
285
+ "required": true,
286
+ "description": "At most `limits.max_upload_bytes`."
287
+ }
288
+ ],
289
+ "hasBody": true,
290
+ "bodyRequired": true,
291
+ "bodyTypes": [
292
+ "application/json",
293
+ "application/octet-stream",
294
+ "*/*"
295
+ ],
296
+ "secretBody": false,
297
+ "raw": false,
298
+ "summary": "Reserve an upload"
299
+ },
300
+ {
301
+ "command": [
302
+ "files",
303
+ "delete"
304
+ ],
305
+ "operationId": "deleteFile",
306
+ "method": "DELETE",
307
+ "path": "/files/{file_id}",
308
+ "pathParams": [
309
+ "file_id"
310
+ ],
311
+ "multiSegment": [],
312
+ "query": [],
313
+ "headers": [],
314
+ "bodyFlags": [],
315
+ "hasBody": false,
316
+ "bodyRequired": false,
317
+ "bodyTypes": [],
318
+ "secretBody": false,
319
+ "raw": false,
320
+ "summary": "Delete an upload"
321
+ },
322
+ {
323
+ "command": [
324
+ "files",
325
+ "get"
326
+ ],
327
+ "operationId": "getFile",
328
+ "method": "GET",
329
+ "path": "/files/{file_id}",
330
+ "pathParams": [
331
+ "file_id"
332
+ ],
333
+ "multiSegment": [],
334
+ "query": [],
335
+ "headers": [],
336
+ "bodyFlags": [],
337
+ "hasBody": false,
338
+ "bodyRequired": false,
339
+ "bodyTypes": [],
340
+ "secretBody": false,
341
+ "raw": false,
342
+ "summary": "An upload's record"
343
+ },
344
+ {
345
+ "command": [
346
+ "files",
347
+ "list"
348
+ ],
349
+ "operationId": "listFiles",
350
+ "method": "GET",
351
+ "path": "/files",
352
+ "pathParams": [],
353
+ "multiSegment": [],
354
+ "query": [
355
+ {
356
+ "name": "limit",
357
+ "type": "integer",
358
+ "required": false,
359
+ "description": ""
360
+ },
361
+ {
362
+ "name": "cursor",
363
+ "type": "string",
364
+ "required": false,
365
+ "description": "`next_cursor` from the previous page."
366
+ }
367
+ ],
368
+ "headers": [],
369
+ "bodyFlags": [],
370
+ "hasBody": false,
371
+ "bodyRequired": false,
372
+ "bodyTypes": [],
373
+ "secretBody": false,
374
+ "raw": false,
375
+ "summary": "This server's uploads, newest first"
376
+ },
377
+ {
378
+ "command": [
379
+ "files",
380
+ "upload"
381
+ ],
382
+ "operationId": "uploadFile",
383
+ "method": "PUT",
384
+ "path": "/files/{file_id}",
385
+ "pathParams": [
386
+ "file_id"
387
+ ],
388
+ "multiSegment": [],
389
+ "query": [],
390
+ "headers": [],
391
+ "bodyFlags": [],
392
+ "hasBody": true,
393
+ "bodyRequired": true,
394
+ "bodyTypes": [
395
+ "application/octet-stream"
396
+ ],
397
+ "secretBody": false,
398
+ "raw": false,
399
+ "summary": "Send a reserved file's bytes"
400
+ },
401
+ {
402
+ "command": [
403
+ "home",
404
+ "delete"
405
+ ],
406
+ "operationId": "deleteHomeFile",
407
+ "method": "DELETE",
408
+ "path": "/agents/{agent_id}/home/files/{path}",
409
+ "pathParams": [
410
+ "agent_id",
411
+ "path"
412
+ ],
413
+ "multiSegment": [
414
+ "path"
415
+ ],
416
+ "query": [],
417
+ "headers": [],
418
+ "bodyFlags": [],
419
+ "hasBody": false,
420
+ "bodyRequired": false,
421
+ "bodyTypes": [],
422
+ "secretBody": false,
423
+ "raw": false,
424
+ "summary": "Delete one file of the agent's home"
425
+ },
426
+ {
427
+ "command": [
428
+ "home",
429
+ "list"
430
+ ],
431
+ "operationId": "listHomeFiles",
432
+ "method": "GET",
433
+ "path": "/agents/{agent_id}/home/files",
434
+ "pathParams": [
435
+ "agent_id"
436
+ ],
437
+ "multiSegment": [],
438
+ "query": [],
439
+ "headers": [],
440
+ "bodyFlags": [],
441
+ "hasBody": false,
442
+ "bodyRequired": false,
443
+ "bodyTypes": [],
444
+ "secretBody": false,
445
+ "raw": false,
446
+ "summary": "Every file in the agent's home"
447
+ },
448
+ {
449
+ "command": [
450
+ "home",
451
+ "read"
452
+ ],
453
+ "operationId": "readHomeFile",
454
+ "method": "GET",
455
+ "path": "/agents/{agent_id}/home/files/{path}",
456
+ "pathParams": [
457
+ "agent_id",
458
+ "path"
459
+ ],
460
+ "multiSegment": [
461
+ "path"
462
+ ],
463
+ "query": [
464
+ {
465
+ "name": "download",
466
+ "type": "integer",
467
+ "required": false,
468
+ "description": "`1` forces a download."
469
+ }
470
+ ],
471
+ "headers": [],
472
+ "bodyFlags": [],
473
+ "hasBody": false,
474
+ "bodyRequired": false,
475
+ "bodyTypes": [],
476
+ "secretBody": false,
477
+ "raw": true,
478
+ "summary": "One file of the agent's home, raw"
479
+ },
480
+ {
481
+ "command": [
482
+ "home",
483
+ "write"
484
+ ],
485
+ "operationId": "writeHomeFile",
486
+ "method": "PUT",
487
+ "path": "/agents/{agent_id}/home/files/{path}",
488
+ "pathParams": [
489
+ "agent_id",
490
+ "path"
491
+ ],
492
+ "multiSegment": [
493
+ "path"
494
+ ],
495
+ "query": [],
496
+ "headers": [],
497
+ "bodyFlags": [],
498
+ "hasBody": true,
499
+ "bodyRequired": true,
500
+ "bodyTypes": [
501
+ "application/octet-stream",
502
+ "*/*"
503
+ ],
504
+ "secretBody": false,
505
+ "raw": false,
506
+ "summary": "Write one file of the agent's home"
507
+ },
508
+ {
509
+ "command": [
510
+ "learning",
511
+ "get"
512
+ ],
513
+ "operationId": "getAgentLearning",
514
+ "method": "GET",
515
+ "path": "/agents/{agent_id}/learning",
516
+ "pathParams": [
517
+ "agent_id"
518
+ ],
519
+ "multiSegment": [],
520
+ "query": [],
521
+ "headers": [],
522
+ "bodyFlags": [],
523
+ "hasBody": false,
524
+ "bodyRequired": false,
525
+ "bodyTypes": [],
526
+ "secretBody": false,
527
+ "raw": false,
528
+ "summary": "What the agent has learned: its index, notes, log of changes and counts"
529
+ },
530
+ {
531
+ "command": [
532
+ "learning",
533
+ "log"
534
+ ],
535
+ "operationId": "listLearningLog",
536
+ "method": "GET",
537
+ "path": "/agents/{agent_id}/learning/log",
538
+ "pathParams": [
539
+ "agent_id"
540
+ ],
541
+ "multiSegment": [],
542
+ "query": [
543
+ {
544
+ "name": "cursor",
545
+ "type": "string",
546
+ "required": false,
547
+ "description": "`next_cursor` from the previous page: opaque."
548
+ },
549
+ {
550
+ "name": "limit",
551
+ "type": "integer",
552
+ "required": false,
553
+ "description": "At most 200."
554
+ }
555
+ ],
556
+ "headers": [],
557
+ "bodyFlags": [],
558
+ "hasBody": false,
559
+ "bodyRequired": false,
560
+ "bodyTypes": [],
561
+ "secretBody": false,
562
+ "raw": false,
563
+ "summary": "A page of the changes on the agent's main, newest first"
564
+ },
565
+ {
566
+ "command": [
567
+ "learning",
568
+ "notes"
569
+ ],
570
+ "operationId": "listLearningNotes",
571
+ "method": "GET",
572
+ "path": "/agents/{agent_id}/learning/notes",
573
+ "pathParams": [
574
+ "agent_id"
575
+ ],
576
+ "multiSegment": [],
577
+ "query": [
578
+ {
579
+ "name": "cursor",
580
+ "type": "string",
581
+ "required": false,
582
+ "description": "`next_cursor` from the previous page: opaque, read at the commit the first page was."
583
+ },
584
+ {
585
+ "name": "limit",
586
+ "type": "integer",
587
+ "required": false,
588
+ "description": "At most 200."
589
+ },
590
+ {
591
+ "name": "status",
592
+ "type": "string",
593
+ "enum": [
594
+ "active",
595
+ "superseded",
596
+ "retired",
597
+ "pending"
598
+ ],
599
+ "required": false,
600
+ "description": "Only notes with this status."
601
+ }
602
+ ],
603
+ "headers": [],
604
+ "bodyFlags": [],
605
+ "hasBody": false,
606
+ "bodyRequired": false,
607
+ "bodyTypes": [],
608
+ "secretBody": false,
609
+ "raw": false,
610
+ "summary": "A page of the agent's notes"
611
+ },
612
+ {
613
+ "command": [
614
+ "learning",
615
+ "read"
616
+ ],
617
+ "operationId": "readLearningFile",
618
+ "method": "GET",
619
+ "path": "/agents/{agent_id}/learning/files/{file}",
620
+ "pathParams": [
621
+ "agent_id",
622
+ "file"
623
+ ],
624
+ "multiSegment": [],
625
+ "query": [],
626
+ "headers": [],
627
+ "bodyFlags": [],
628
+ "hasBody": false,
629
+ "bodyRequired": false,
630
+ "bodyTypes": [],
631
+ "secretBody": false,
632
+ "raw": false,
633
+ "summary": "One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag"
634
+ },
635
+ {
636
+ "command": [
637
+ "learning",
638
+ "retire"
639
+ ],
640
+ "operationId": "retireLearningFile",
641
+ "method": "POST",
642
+ "path": "/agents/{agent_id}/learning/files/{file}/retire",
643
+ "pathParams": [
644
+ "agent_id",
645
+ "file"
646
+ ],
647
+ "multiSegment": [],
648
+ "query": [],
649
+ "headers": [
650
+ {
651
+ "name": "If-Match",
652
+ "type": "string",
653
+ "required": false,
654
+ "description": "The note's ETag, as a GET answered it: an edit or a retire lands only on that version, else 412."
655
+ }
656
+ ],
657
+ "bodyFlags": [],
658
+ "hasBody": false,
659
+ "bodyRequired": false,
660
+ "bodyTypes": [],
661
+ "secretBody": false,
662
+ "raw": true,
663
+ "summary": "Retire a note, a skill or a workflow draft: out of every later run, kept in history"
664
+ },
665
+ {
666
+ "command": [
667
+ "learning",
668
+ "write"
669
+ ],
670
+ "operationId": "writeLearningFile",
671
+ "method": "PUT",
672
+ "path": "/agents/{agent_id}/learning/files/{file}",
673
+ "pathParams": [
674
+ "agent_id",
675
+ "file"
676
+ ],
677
+ "multiSegment": [],
678
+ "query": [],
679
+ "headers": [
680
+ {
681
+ "name": "If-Match",
682
+ "type": "string",
683
+ "required": false,
684
+ "description": "The note's ETag, as a GET answered it: an edit or a retire lands only on that version, else 412."
685
+ },
686
+ {
687
+ "name": "If-None-Match",
688
+ "type": "string",
689
+ "required": false,
690
+ "description": "`*`: create the note, only if the name is not taken, else 412."
691
+ }
692
+ ],
693
+ "bodyFlags": [
694
+ {
695
+ "name": "text",
696
+ "type": "string",
697
+ "required": true,
698
+ "description": "The note's whole text, front matter included."
699
+ }
700
+ ],
701
+ "hasBody": true,
702
+ "bodyRequired": true,
703
+ "bodyTypes": [
704
+ "text/markdown",
705
+ "text/plain",
706
+ "application/json"
707
+ ],
708
+ "secretBody": false,
709
+ "raw": true,
710
+ "summary": "Edit a note (If-Match) or create one (If-None-Match: *)"
711
+ },
712
+ {
713
+ "command": [
714
+ "mcp-servers",
715
+ "delete"
716
+ ],
717
+ "operationId": "deleteMcpServer",
718
+ "method": "DELETE",
719
+ "path": "/settings/mcp-servers/{name}",
720
+ "pathParams": [
721
+ "name"
722
+ ],
723
+ "multiSegment": [],
724
+ "query": [],
725
+ "headers": [],
726
+ "bodyFlags": [],
727
+ "hasBody": false,
728
+ "bodyRequired": false,
729
+ "bodyTypes": [],
730
+ "secretBody": false,
731
+ "raw": false,
732
+ "summary": "Forget a saved MCP server and its credential"
733
+ },
734
+ {
735
+ "command": [
736
+ "mcp-servers",
737
+ "get"
738
+ ],
739
+ "operationId": "getMcpServer",
740
+ "method": "GET",
741
+ "path": "/settings/mcp-servers/{name}",
742
+ "pathParams": [
743
+ "name"
744
+ ],
745
+ "multiSegment": [],
746
+ "query": [],
747
+ "headers": [],
748
+ "bodyFlags": [],
749
+ "hasBody": false,
750
+ "bodyRequired": false,
751
+ "bodyTypes": [],
752
+ "secretBody": false,
753
+ "raw": false,
754
+ "summary": "One saved MCP server; never its credential"
755
+ },
756
+ {
757
+ "command": [
758
+ "mcp-servers",
759
+ "list"
760
+ ],
761
+ "operationId": "listMcpServers",
762
+ "method": "GET",
763
+ "path": "/settings/mcp-servers",
764
+ "pathParams": [],
765
+ "multiSegment": [],
766
+ "query": [],
767
+ "headers": [],
768
+ "bodyFlags": [],
769
+ "hasBody": false,
770
+ "bodyRequired": false,
771
+ "bodyTypes": [],
772
+ "secretBody": false,
773
+ "raw": false,
774
+ "summary": "The remote MCP servers saved here, with their tools; never a credential"
775
+ },
776
+ {
777
+ "command": [
778
+ "mcp-servers",
779
+ "preview"
780
+ ],
781
+ "operationId": "previewMcpServer",
782
+ "method": "POST",
783
+ "path": "/settings/mcp-servers/preview",
784
+ "pathParams": [],
785
+ "multiSegment": [],
786
+ "query": [],
787
+ "headers": [],
788
+ "bodyFlags": [],
789
+ "hasBody": true,
790
+ "bodyRequired": true,
791
+ "bodyTypes": [
792
+ "application/json"
793
+ ],
794
+ "secretBody": true,
795
+ "raw": false,
796
+ "summary": "Connect to a remote MCP server and list its tools, storing nothing"
797
+ },
798
+ {
799
+ "command": [
800
+ "mcp-servers",
801
+ "refresh"
802
+ ],
803
+ "operationId": "refreshMcpServer",
804
+ "method": "POST",
805
+ "path": "/settings/mcp-servers/{name}/refresh",
806
+ "pathParams": [
807
+ "name"
808
+ ],
809
+ "multiSegment": [],
810
+ "query": [],
811
+ "headers": [],
812
+ "bodyFlags": [],
813
+ "hasBody": false,
814
+ "bodyRequired": false,
815
+ "bodyTypes": [],
816
+ "secretBody": false,
817
+ "raw": false,
818
+ "summary": "List a saved MCP server's tools again, keep them, and say what changed"
819
+ },
820
+ {
821
+ "command": [
822
+ "mcp-servers",
823
+ "save"
824
+ ],
825
+ "operationId": "saveMcpServer",
826
+ "method": "PUT",
827
+ "path": "/settings/mcp-servers/{name}",
828
+ "pathParams": [
829
+ "name"
830
+ ],
831
+ "multiSegment": [],
832
+ "query": [],
833
+ "headers": [],
834
+ "bodyFlags": [],
835
+ "hasBody": true,
836
+ "bodyRequired": true,
837
+ "bodyTypes": [
838
+ "application/json"
839
+ ],
840
+ "secretBody": true,
841
+ "raw": false,
842
+ "summary": "Preview a remote MCP server, then save it with the tools listed and its credential sealed"
843
+ },
844
+ {
845
+ "command": [
846
+ "revisions",
847
+ "list"
848
+ ],
849
+ "operationId": "listRevisions",
850
+ "method": "GET",
851
+ "path": "/agents/{agent_id}/revisions",
852
+ "pathParams": [
853
+ "agent_id"
854
+ ],
855
+ "multiSegment": [],
856
+ "query": [
857
+ {
858
+ "name": "limit",
859
+ "type": "integer",
860
+ "required": false,
861
+ "description": ""
862
+ },
863
+ {
864
+ "name": "cursor",
865
+ "type": "string",
866
+ "required": false,
867
+ "description": "`next_cursor` from the previous page."
868
+ }
869
+ ],
870
+ "headers": [],
871
+ "bodyFlags": [],
872
+ "hasBody": false,
873
+ "bodyRequired": false,
874
+ "bodyTypes": [],
875
+ "secretBody": false,
876
+ "raw": false,
877
+ "summary": "The agent's revisions, newest first"
878
+ },
879
+ {
880
+ "command": [
881
+ "revisions",
882
+ "set-current"
883
+ ],
884
+ "operationId": "setCurrent",
885
+ "method": "POST",
886
+ "path": "/agents/{agent_id}/current",
887
+ "pathParams": [
888
+ "agent_id"
889
+ ],
890
+ "multiSegment": [],
891
+ "query": [],
892
+ "headers": [],
893
+ "bodyFlags": [
894
+ {
895
+ "name": "revision",
896
+ "type": "string",
897
+ "required": true,
898
+ "description": ""
899
+ }
900
+ ],
901
+ "hasBody": true,
902
+ "bodyRequired": true,
903
+ "bodyTypes": [
904
+ "application/json"
905
+ ],
906
+ "secretBody": false,
907
+ "raw": false,
908
+ "summary": "Make one of the agent's revisions current again"
909
+ },
910
+ {
911
+ "command": [
912
+ "runs",
913
+ "archive"
914
+ ],
915
+ "operationId": "archiveRun",
916
+ "method": "POST",
917
+ "path": "/runs/{run_id}/archive",
918
+ "pathParams": [
919
+ "run_id"
920
+ ],
921
+ "multiSegment": [],
922
+ "query": [],
923
+ "headers": [],
924
+ "bodyFlags": [],
925
+ "hasBody": false,
926
+ "bodyRequired": false,
927
+ "bodyTypes": [],
928
+ "secretBody": false,
929
+ "raw": false,
930
+ "summary": "Archive the run: hidden from the lists, kept with its history"
931
+ },
932
+ {
933
+ "command": [
934
+ "runs",
935
+ "cancel"
936
+ ],
937
+ "operationId": "cancelRun",
938
+ "method": "POST",
939
+ "path": "/runs/{run_id}/cancel",
940
+ "pathParams": [
941
+ "run_id"
942
+ ],
943
+ "multiSegment": [],
944
+ "query": [],
945
+ "headers": [],
946
+ "bodyFlags": [],
947
+ "hasBody": false,
948
+ "bodyRequired": false,
949
+ "bodyTypes": [],
950
+ "secretBody": false,
951
+ "raw": false,
952
+ "summary": "End the run"
953
+ },
954
+ {
955
+ "command": [
956
+ "runs",
957
+ "files"
958
+ ],
959
+ "operationId": "listRunFiles",
960
+ "method": "GET",
961
+ "path": "/runs/{run_id}/files",
962
+ "pathParams": [
963
+ "run_id"
964
+ ],
965
+ "multiSegment": [],
966
+ "query": [],
967
+ "headers": [],
968
+ "bodyFlags": [],
969
+ "hasBody": false,
970
+ "bodyRequired": false,
971
+ "bodyTypes": [],
972
+ "secretBody": false,
973
+ "raw": false,
974
+ "summary": "The files the run wrote"
975
+ },
976
+ {
977
+ "command": [
978
+ "runs",
979
+ "get"
980
+ ],
981
+ "operationId": "getRun",
982
+ "method": "GET",
983
+ "path": "/runs/{run_id}",
984
+ "pathParams": [
985
+ "run_id"
986
+ ],
987
+ "multiSegment": [],
988
+ "query": [],
989
+ "headers": [],
990
+ "bodyFlags": [],
991
+ "hasBody": false,
992
+ "bodyRequired": false,
993
+ "bodyTypes": [],
994
+ "secretBody": false,
995
+ "raw": false,
996
+ "summary": "One run"
997
+ },
998
+ {
999
+ "command": [
1000
+ "runs",
1001
+ "graph"
1002
+ ],
1003
+ "operationId": "getRunGraph",
1004
+ "method": "GET",
1005
+ "path": "/runs/{run_id}/graph",
1006
+ "pathParams": [
1007
+ "run_id"
1008
+ ],
1009
+ "multiSegment": [],
1010
+ "query": [],
1011
+ "headers": [],
1012
+ "bodyFlags": [],
1013
+ "hasBody": false,
1014
+ "bodyRequired": false,
1015
+ "bodyTypes": [],
1016
+ "secretBody": false,
1017
+ "raw": false,
1018
+ "summary": "A workflow run's graph, live"
1019
+ },
1020
+ {
1021
+ "command": [
1022
+ "runs",
1023
+ "learning"
1024
+ ],
1025
+ "operationId": "getRunLearning",
1026
+ "method": "GET",
1027
+ "path": "/runs/{run_id}/learning",
1028
+ "pathParams": [
1029
+ "run_id"
1030
+ ],
1031
+ "multiSegment": [],
1032
+ "query": [],
1033
+ "headers": [],
1034
+ "bodyFlags": [],
1035
+ "hasBody": false,
1036
+ "bodyRequired": false,
1037
+ "bodyTypes": [],
1038
+ "secretBody": false,
1039
+ "raw": false,
1040
+ "summary": "The run's learning whole: its seed, merge, verdict, problems and cost"
1041
+ },
1042
+ {
1043
+ "command": [
1044
+ "runs",
1045
+ "learning-diff"
1046
+ ],
1047
+ "operationId": "getRunLearningDiff",
1048
+ "method": "GET",
1049
+ "path": "/runs/{run_id}/learning/diff",
1050
+ "pathParams": [
1051
+ "run_id"
1052
+ ],
1053
+ "multiSegment": [],
1054
+ "query": [],
1055
+ "headers": [],
1056
+ "bodyFlags": [],
1057
+ "hasBody": false,
1058
+ "bodyRequired": false,
1059
+ "bodyTypes": [],
1060
+ "secretBody": false,
1061
+ "raw": false,
1062
+ "summary": "What the run proposed, file by file"
1063
+ },
1064
+ {
1065
+ "command": [
1066
+ "runs",
1067
+ "list"
1068
+ ],
1069
+ "operationId": "listAllRuns",
1070
+ "method": "GET",
1071
+ "path": "/runs",
1072
+ "pathParams": [],
1073
+ "multiSegment": [],
1074
+ "query": [
1075
+ {
1076
+ "name": "limit",
1077
+ "type": "integer",
1078
+ "required": false,
1079
+ "description": ""
1080
+ },
1081
+ {
1082
+ "name": "cursor",
1083
+ "type": "string",
1084
+ "required": false,
1085
+ "description": "`next_cursor` from the previous page."
1086
+ },
1087
+ {
1088
+ "name": "agent",
1089
+ "type": "string",
1090
+ "required": false,
1091
+ "description": "Only this agent's runs."
1092
+ },
1093
+ {
1094
+ "name": "revision",
1095
+ "type": "string",
1096
+ "required": false,
1097
+ "description": "Only runs of this revision."
1098
+ },
1099
+ {
1100
+ "name": "status",
1101
+ "type": "string",
1102
+ "enum": [
1103
+ "queued",
1104
+ "working",
1105
+ "paused",
1106
+ "input_required",
1107
+ "completed",
1108
+ "failed",
1109
+ "cancelled"
1110
+ ],
1111
+ "required": false,
1112
+ "description": "Only runs with this status."
1113
+ },
1114
+ {
1115
+ "name": "archived",
1116
+ "type": "boolean",
1117
+ "required": false,
1118
+ "description": "true lists only archived runs; false, the default, the others."
1119
+ }
1120
+ ],
1121
+ "headers": [],
1122
+ "bodyFlags": [],
1123
+ "hasBody": false,
1124
+ "bodyRequired": false,
1125
+ "bodyTypes": [],
1126
+ "secretBody": false,
1127
+ "raw": false,
1128
+ "summary": "Every agent's runs, newest first"
1129
+ },
1130
+ {
1131
+ "command": [
1132
+ "runs",
1133
+ "message"
1134
+ ],
1135
+ "operationId": "sendMessage",
1136
+ "method": "POST",
1137
+ "path": "/runs/{run_id}/messages",
1138
+ "pathParams": [
1139
+ "run_id"
1140
+ ],
1141
+ "multiSegment": [],
1142
+ "query": [],
1143
+ "headers": [
1144
+ {
1145
+ "name": "Idempotency-Key",
1146
+ "type": "string",
1147
+ "required": false,
1148
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1149
+ }
1150
+ ],
1151
+ "bodyFlags": [
1152
+ {
1153
+ "name": "content",
1154
+ "type": "string",
1155
+ "required": true,
1156
+ "description": "At most `limits.max_message_chars`. Not only whitespace."
1157
+ }
1158
+ ],
1159
+ "hasBody": true,
1160
+ "bodyRequired": true,
1161
+ "bodyTypes": [
1162
+ "application/json"
1163
+ ],
1164
+ "secretBody": false,
1165
+ "raw": false,
1166
+ "summary": "Send the run a message"
1167
+ },
1168
+ {
1169
+ "command": [
1170
+ "runs",
1171
+ "pause"
1172
+ ],
1173
+ "operationId": "pauseRun",
1174
+ "method": "POST",
1175
+ "path": "/runs/{run_id}/pause",
1176
+ "pathParams": [
1177
+ "run_id"
1178
+ ],
1179
+ "multiSegment": [],
1180
+ "query": [],
1181
+ "headers": [],
1182
+ "bodyFlags": [],
1183
+ "hasBody": false,
1184
+ "bodyRequired": false,
1185
+ "bodyTypes": [],
1186
+ "secretBody": false,
1187
+ "raw": false,
1188
+ "summary": "Pause a workflow run"
1189
+ },
1190
+ {
1191
+ "command": [
1192
+ "runs",
1193
+ "raise-cap"
1194
+ ],
1195
+ "operationId": "raiseRunCap",
1196
+ "method": "PATCH",
1197
+ "path": "/runs/{run_id}",
1198
+ "pathParams": [
1199
+ "run_id"
1200
+ ],
1201
+ "multiSegment": [],
1202
+ "query": [],
1203
+ "headers": [],
1204
+ "bodyFlags": [
1205
+ {
1206
+ "name": "max_cost_usd",
1207
+ "type": "number",
1208
+ "required": true,
1209
+ "description": "The new cap, above the run's current cap."
1210
+ }
1211
+ ],
1212
+ "hasBody": true,
1213
+ "bodyRequired": true,
1214
+ "bodyTypes": [
1215
+ "application/json"
1216
+ ],
1217
+ "secretBody": false,
1218
+ "raw": false,
1219
+ "summary": "Raise a run's spend cap"
1220
+ },
1221
+ {
1222
+ "command": [
1223
+ "runs",
1224
+ "read-file"
1225
+ ],
1226
+ "operationId": "readRunFile",
1227
+ "method": "GET",
1228
+ "path": "/runs/{run_id}/files/{path}",
1229
+ "pathParams": [
1230
+ "run_id",
1231
+ "path"
1232
+ ],
1233
+ "multiSegment": [
1234
+ "path"
1235
+ ],
1236
+ "query": [
1237
+ {
1238
+ "name": "download",
1239
+ "type": "integer",
1240
+ "required": false,
1241
+ "description": "`1` forces a download."
1242
+ }
1243
+ ],
1244
+ "headers": [
1245
+ {
1246
+ "name": "Range",
1247
+ "type": "string",
1248
+ "required": false,
1249
+ "description": "One byte range, `bytes=<start>-<end>`."
1250
+ }
1251
+ ],
1252
+ "bodyFlags": [],
1253
+ "hasBody": false,
1254
+ "bodyRequired": false,
1255
+ "bodyTypes": [],
1256
+ "secretBody": false,
1257
+ "raw": true,
1258
+ "summary": "One file's raw bytes"
1259
+ },
1260
+ {
1261
+ "command": [
1262
+ "runs",
1263
+ "resume"
1264
+ ],
1265
+ "operationId": "resumeRun",
1266
+ "method": "POST",
1267
+ "path": "/runs/{run_id}/resume",
1268
+ "pathParams": [
1269
+ "run_id"
1270
+ ],
1271
+ "multiSegment": [],
1272
+ "query": [],
1273
+ "headers": [],
1274
+ "bodyFlags": [],
1275
+ "hasBody": false,
1276
+ "bodyRequired": false,
1277
+ "bodyTypes": [],
1278
+ "secretBody": false,
1279
+ "raw": false,
1280
+ "summary": "Resume a paused workflow run"
1281
+ },
1282
+ {
1283
+ "command": [
1284
+ "runs",
1285
+ "start"
1286
+ ],
1287
+ "operationId": "createRun",
1288
+ "method": "POST",
1289
+ "path": "/agents/{agent_id}/runs",
1290
+ "pathParams": [
1291
+ "agent_id"
1292
+ ],
1293
+ "multiSegment": [],
1294
+ "query": [],
1295
+ "headers": [
1296
+ {
1297
+ "name": "Idempotency-Key",
1298
+ "type": "string",
1299
+ "required": false,
1300
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1301
+ }
1302
+ ],
1303
+ "bodyFlags": [
1304
+ {
1305
+ "name": "effort",
1306
+ "type": "string",
1307
+ "enum": [
1308
+ "low",
1309
+ "medium",
1310
+ "high"
1311
+ ],
1312
+ "required": false,
1313
+ "description": "How hard a run works. It sets the model's thinking level, and adds a short note on how to work right after the agent's instructions, on every harness: low answers directly, medium plans briefly and checks once, high plans each part, fills the gaps and reviews. A run started with none thinks at its agent revision's own thinking level, else the host's default, and gets no note."
1314
+ },
1315
+ {
1316
+ "name": "max_cost_usd",
1317
+ "type": "number",
1318
+ "required": false,
1319
+ "description": "This run's cap, for every turn of it. Default the definition's `max_cost_usd`, else the effort default."
1320
+ },
1321
+ {
1322
+ "name": "quote_id",
1323
+ "type": "string",
1324
+ "required": false,
1325
+ "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
1326
+ }
1327
+ ],
1328
+ "hasBody": true,
1329
+ "bodyRequired": true,
1330
+ "bodyTypes": [
1331
+ "application/json"
1332
+ ],
1333
+ "secretBody": false,
1334
+ "raw": false,
1335
+ "summary": "Start a run"
1336
+ },
1337
+ {
1338
+ "command": [
1339
+ "runs",
1340
+ "stop"
1341
+ ],
1342
+ "operationId": "stopRun",
1343
+ "method": "POST",
1344
+ "path": "/runs/{run_id}/stop",
1345
+ "pathParams": [
1346
+ "run_id"
1347
+ ],
1348
+ "multiSegment": [],
1349
+ "query": [],
1350
+ "headers": [],
1351
+ "bodyFlags": [],
1352
+ "hasBody": false,
1353
+ "bodyRequired": false,
1354
+ "bodyTypes": [],
1355
+ "secretBody": false,
1356
+ "raw": false,
1357
+ "summary": "End the current turn"
1358
+ },
1359
+ {
1360
+ "command": [
1361
+ "runs",
1362
+ "timeline"
1363
+ ],
1364
+ "operationId": "getTimeline",
1365
+ "method": "GET",
1366
+ "path": "/runs/{run_id}/timeline",
1367
+ "pathParams": [
1368
+ "run_id"
1369
+ ],
1370
+ "multiSegment": [],
1371
+ "query": [
1372
+ {
1373
+ "name": "after",
1374
+ "type": "integer",
1375
+ "required": false,
1376
+ "description": "The change cursor last applied, from `next_after` or the last SSE `id`. 0 is the start."
1377
+ },
1378
+ {
1379
+ "name": "wait_ms",
1380
+ "type": "integer",
1381
+ "required": false,
1382
+ "description": "JSON only. How long to hold the request for a change after `after`."
1383
+ },
1384
+ {
1385
+ "name": "limit",
1386
+ "type": "integer",
1387
+ "required": false,
1388
+ "description": "At most this many rows in a page (1 to 500, default 500); has_more says when another waits."
1389
+ }
1390
+ ],
1391
+ "headers": [
1392
+ {
1393
+ "name": "Last-Event-ID",
1394
+ "type": "string",
1395
+ "required": false,
1396
+ "description": "SSE reconnect. Same meaning as `after`, and wins over it."
1397
+ }
1398
+ ],
1399
+ "bodyFlags": [],
1400
+ "hasBody": false,
1401
+ "bodyRequired": false,
1402
+ "bodyTypes": [],
1403
+ "secretBody": false,
1404
+ "raw": false,
1405
+ "summary": "The run's timeline, as a page or a stream"
1406
+ },
1407
+ {
1408
+ "command": [
1409
+ "runs",
1410
+ "unarchive"
1411
+ ],
1412
+ "operationId": "unarchiveRun",
1413
+ "method": "POST",
1414
+ "path": "/runs/{run_id}/unarchive",
1415
+ "pathParams": [
1416
+ "run_id"
1417
+ ],
1418
+ "multiSegment": [],
1419
+ "query": [],
1420
+ "headers": [],
1421
+ "bodyFlags": [],
1422
+ "hasBody": false,
1423
+ "bodyRequired": false,
1424
+ "bodyTypes": [],
1425
+ "secretBody": false,
1426
+ "raw": false,
1427
+ "summary": "Show the archived run in the lists again"
1428
+ },
1429
+ {
1430
+ "command": [
1431
+ "server",
1432
+ "capabilities"
1433
+ ],
1434
+ "operationId": "getCapabilities",
1435
+ "method": "GET",
1436
+ "path": "/capabilities",
1437
+ "pathParams": [],
1438
+ "multiSegment": [],
1439
+ "query": [],
1440
+ "headers": [],
1441
+ "bodyFlags": [],
1442
+ "hasBody": false,
1443
+ "bodyRequired": false,
1444
+ "bodyTypes": [],
1445
+ "secretBody": false,
1446
+ "raw": false,
1447
+ "summary": "What this backend offers"
1448
+ },
1449
+ {
1450
+ "command": [
1451
+ "server",
1452
+ "health"
1453
+ ],
1454
+ "operationId": "getHealth",
1455
+ "method": "GET",
1456
+ "path": "/health",
1457
+ "pathParams": [],
1458
+ "multiSegment": [],
1459
+ "query": [],
1460
+ "headers": [],
1461
+ "bodyFlags": [],
1462
+ "hasBody": false,
1463
+ "bodyRequired": false,
1464
+ "bodyTypes": [],
1465
+ "secretBody": false,
1466
+ "raw": false,
1467
+ "summary": "Whether this server can serve"
1468
+ },
1469
+ {
1470
+ "command": [
1471
+ "server",
1472
+ "mcp"
1473
+ ],
1474
+ "operationId": "callMcp",
1475
+ "method": "POST",
1476
+ "path": "/mcp",
1477
+ "pathParams": [],
1478
+ "multiSegment": [],
1479
+ "query": [],
1480
+ "headers": [],
1481
+ "bodyFlags": [
1482
+ {
1483
+ "name": "method",
1484
+ "type": "string",
1485
+ "required": false,
1486
+ "description": ""
1487
+ }
1488
+ ],
1489
+ "hasBody": true,
1490
+ "bodyRequired": true,
1491
+ "bodyTypes": [
1492
+ "application/json"
1493
+ ],
1494
+ "secretBody": false,
1495
+ "raw": false,
1496
+ "summary": "The MCP endpoint: this API's tools, for a coding agent"
1497
+ },
1498
+ {
1499
+ "command": [
1500
+ "server",
1501
+ "openapi"
1502
+ ],
1503
+ "operationId": "getOpenapi",
1504
+ "method": "GET",
1505
+ "path": "/openapi.json",
1506
+ "pathParams": [],
1507
+ "multiSegment": [],
1508
+ "query": [],
1509
+ "headers": [],
1510
+ "bodyFlags": [],
1511
+ "hasBody": false,
1512
+ "bodyRequired": false,
1513
+ "bodyTypes": [],
1514
+ "secretBody": false,
1515
+ "raw": false,
1516
+ "summary": "This document"
1517
+ },
1518
+ {
1519
+ "command": [
1520
+ "stats"
1521
+ ],
1522
+ "operationId": "getStats",
1523
+ "method": "GET",
1524
+ "path": "/stats",
1525
+ "pathParams": [],
1526
+ "multiSegment": [],
1527
+ "query": [
1528
+ {
1529
+ "name": "from",
1530
+ "type": "string",
1531
+ "required": false,
1532
+ "description": "Runs started at or after this RFC 3339 date-time, to the millisecond (a finer fraction is a 400). Default no bound."
1533
+ },
1534
+ {
1535
+ "name": "to",
1536
+ "type": "string",
1537
+ "required": false,
1538
+ "description": "Runs started before this RFC 3339 date-time, to the millisecond (a finer fraction is a 400). Default no bound."
1539
+ },
1540
+ {
1541
+ "name": "agent",
1542
+ "type": "string",
1543
+ "required": false,
1544
+ "description": "One agent's runs."
1545
+ }
1546
+ ],
1547
+ "headers": [],
1548
+ "bodyFlags": [],
1549
+ "hasBody": false,
1550
+ "bodyRequired": false,
1551
+ "bodyTypes": [],
1552
+ "secretBody": false,
1553
+ "raw": false,
1554
+ "summary": "Counts and cost over every agent and run"
1555
+ },
1556
+ {
1557
+ "command": [
1558
+ "tool-keys",
1559
+ "delete"
1560
+ ],
1561
+ "operationId": "deleteToolKey",
1562
+ "method": "DELETE",
1563
+ "path": "/settings/tool-keys/{key_id}",
1564
+ "pathParams": [
1565
+ "key_id"
1566
+ ],
1567
+ "multiSegment": [],
1568
+ "query": [],
1569
+ "headers": [],
1570
+ "bodyFlags": [],
1571
+ "hasBody": false,
1572
+ "bodyRequired": false,
1573
+ "bodyTypes": [],
1574
+ "secretBody": false,
1575
+ "raw": false,
1576
+ "summary": "Forget a tool key's stored fields"
1577
+ },
1578
+ {
1579
+ "command": [
1580
+ "tool-keys",
1581
+ "list"
1582
+ ],
1583
+ "operationId": "listToolKeys",
1584
+ "method": "GET",
1585
+ "path": "/settings/tool-keys",
1586
+ "pathParams": [],
1587
+ "multiSegment": [],
1588
+ "query": [],
1589
+ "headers": [],
1590
+ "bodyFlags": [],
1591
+ "hasBody": false,
1592
+ "bodyRequired": false,
1593
+ "bodyTypes": [],
1594
+ "secretBody": false,
1595
+ "raw": false,
1596
+ "summary": "The tool keys a person may save, and which are set: names only, never a value"
1597
+ },
1598
+ {
1599
+ "command": [
1600
+ "tool-keys",
1601
+ "save"
1602
+ ],
1603
+ "operationId": "saveToolKey",
1604
+ "method": "PUT",
1605
+ "path": "/settings/tool-keys/{key_id}",
1606
+ "pathParams": [
1607
+ "key_id"
1608
+ ],
1609
+ "multiSegment": [],
1610
+ "query": [],
1611
+ "headers": [],
1612
+ "bodyFlags": [],
1613
+ "hasBody": true,
1614
+ "bodyRequired": true,
1615
+ "bodyTypes": [
1616
+ "application/json"
1617
+ ],
1618
+ "secretBody": true,
1619
+ "raw": false,
1620
+ "summary": "Save a tool key's fields, sealed"
1621
+ },
1622
+ {
1623
+ "command": [
1624
+ "tool-settings",
1625
+ "get"
1626
+ ],
1627
+ "operationId": "getToolSettings",
1628
+ "method": "GET",
1629
+ "path": "/settings/tools",
1630
+ "pathParams": [],
1631
+ "multiSegment": [],
1632
+ "query": [],
1633
+ "headers": [],
1634
+ "bodyFlags": [],
1635
+ "hasBody": false,
1636
+ "bodyRequired": false,
1637
+ "bodyTypes": [],
1638
+ "secretBody": false,
1639
+ "raw": false,
1640
+ "summary": "The server's tool settings"
1641
+ },
1642
+ {
1643
+ "command": [
1644
+ "tool-settings",
1645
+ "save"
1646
+ ],
1647
+ "operationId": "putToolSettings",
1648
+ "method": "PUT",
1649
+ "path": "/settings/tools",
1650
+ "pathParams": [],
1651
+ "multiSegment": [],
1652
+ "query": [],
1653
+ "headers": [],
1654
+ "bodyFlags": [],
1655
+ "hasBody": true,
1656
+ "bodyRequired": true,
1657
+ "bodyTypes": [
1658
+ "application/json"
1659
+ ],
1660
+ "secretBody": false,
1661
+ "raw": false,
1662
+ "summary": "Set the providers of web_search, web_fetch and browser, and each tool's permission"
1663
+ },
1664
+ {
1665
+ "command": [
1666
+ "triggers",
1667
+ "create"
1668
+ ],
1669
+ "operationId": "createTrigger",
1670
+ "method": "POST",
1671
+ "path": "/triggers",
1672
+ "pathParams": [],
1673
+ "multiSegment": [],
1674
+ "query": [],
1675
+ "headers": [
1676
+ {
1677
+ "name": "Idempotency-Key",
1678
+ "type": "string",
1679
+ "required": false,
1680
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1681
+ }
1682
+ ],
1683
+ "bodyFlags": [
1684
+ {
1685
+ "name": "name",
1686
+ "type": "string",
1687
+ "required": false,
1688
+ "description": "Default the trigger's id."
1689
+ },
1690
+ {
1691
+ "name": "enabled",
1692
+ "type": "boolean",
1693
+ "required": false,
1694
+ "description": "Off, it fires nothing; on again, it goes on from now: the time it was off is skipped, never caught up."
1695
+ },
1696
+ {
1697
+ "name": "catchup_window_s",
1698
+ "type": "integer",
1699
+ "required": false,
1700
+ "description": ""
1701
+ }
1702
+ ],
1703
+ "hasBody": true,
1704
+ "bodyRequired": true,
1705
+ "bodyTypes": [
1706
+ "application/json"
1707
+ ],
1708
+ "secretBody": false,
1709
+ "raw": false,
1710
+ "summary": "Make a trigger: a schedule or a signed webhook that starts a capped run of an agent, or messages a run"
1711
+ },
1712
+ {
1713
+ "command": [
1714
+ "triggers",
1715
+ "delete"
1716
+ ],
1717
+ "operationId": "deleteTrigger",
1718
+ "method": "DELETE",
1719
+ "path": "/triggers/{trigger_id}",
1720
+ "pathParams": [
1721
+ "trigger_id"
1722
+ ],
1723
+ "multiSegment": [],
1724
+ "query": [],
1725
+ "headers": [],
1726
+ "bodyFlags": [],
1727
+ "hasBody": false,
1728
+ "bodyRequired": false,
1729
+ "bodyTypes": [],
1730
+ "secretBody": false,
1731
+ "raw": false,
1732
+ "summary": "Delete a trigger and its firings; the runs it started stay"
1733
+ },
1734
+ {
1735
+ "command": [
1736
+ "triggers",
1737
+ "fire"
1738
+ ],
1739
+ "operationId": "fireTrigger",
1740
+ "method": "POST",
1741
+ "path": "/triggers/{trigger_id}/fire",
1742
+ "pathParams": [
1743
+ "trigger_id"
1744
+ ],
1745
+ "multiSegment": [],
1746
+ "query": [],
1747
+ "headers": [
1748
+ {
1749
+ "name": "Idempotency-Key",
1750
+ "type": "string",
1751
+ "required": true,
1752
+ "description": "Required here: a retry with the same key fires once."
1753
+ }
1754
+ ],
1755
+ "bodyFlags": [],
1756
+ "hasBody": false,
1757
+ "bodyRequired": false,
1758
+ "bodyTypes": [],
1759
+ "secretBody": false,
1760
+ "raw": false,
1761
+ "summary": "Run it now: one firing per Idempotency-Key"
1762
+ },
1763
+ {
1764
+ "command": [
1765
+ "triggers",
1766
+ "firings"
1767
+ ],
1768
+ "operationId": "listTriggerFirings",
1769
+ "method": "GET",
1770
+ "path": "/triggers/{trigger_id}/firings",
1771
+ "pathParams": [
1772
+ "trigger_id"
1773
+ ],
1774
+ "multiSegment": [],
1775
+ "query": [],
1776
+ "headers": [],
1777
+ "bodyFlags": [],
1778
+ "hasBody": false,
1779
+ "bodyRequired": false,
1780
+ "bodyTypes": [],
1781
+ "secretBody": false,
1782
+ "raw": false,
1783
+ "summary": "The trigger's last 200 firings, newest first"
1784
+ },
1785
+ {
1786
+ "command": [
1787
+ "triggers",
1788
+ "get"
1789
+ ],
1790
+ "operationId": "getTrigger",
1791
+ "method": "GET",
1792
+ "path": "/triggers/{trigger_id}",
1793
+ "pathParams": [
1794
+ "trigger_id"
1795
+ ],
1796
+ "multiSegment": [],
1797
+ "query": [],
1798
+ "headers": [],
1799
+ "bodyFlags": [],
1800
+ "hasBody": false,
1801
+ "bodyRequired": false,
1802
+ "bodyTypes": [],
1803
+ "secretBody": false,
1804
+ "raw": false,
1805
+ "summary": "One trigger"
1806
+ },
1807
+ {
1808
+ "command": [
1809
+ "triggers",
1810
+ "list"
1811
+ ],
1812
+ "operationId": "listTriggers",
1813
+ "method": "GET",
1814
+ "path": "/triggers",
1815
+ "pathParams": [],
1816
+ "multiSegment": [],
1817
+ "query": [],
1818
+ "headers": [],
1819
+ "bodyFlags": [],
1820
+ "hasBody": false,
1821
+ "bodyRequired": false,
1822
+ "bodyTypes": [],
1823
+ "secretBody": false,
1824
+ "raw": false,
1825
+ "summary": "The triggers: schedules that start an agent's capped runs"
1826
+ },
1827
+ {
1828
+ "command": [
1829
+ "triggers",
1830
+ "rotate-secret"
1831
+ ],
1832
+ "operationId": "rotateTriggerSecret",
1833
+ "method": "POST",
1834
+ "path": "/triggers/{trigger_id}/secret",
1835
+ "pathParams": [
1836
+ "trigger_id"
1837
+ ],
1838
+ "multiSegment": [],
1839
+ "query": [],
1840
+ "headers": [],
1841
+ "bodyFlags": [],
1842
+ "hasBody": false,
1843
+ "bodyRequired": false,
1844
+ "bodyTypes": [],
1845
+ "secretBody": false,
1846
+ "raw": false,
1847
+ "summary": "A webhook trigger's new secret, shown once; the old one signs nothing from now on"
1848
+ },
1849
+ {
1850
+ "command": [
1851
+ "triggers",
1852
+ "update"
1853
+ ],
1854
+ "operationId": "updateTrigger",
1855
+ "method": "PATCH",
1856
+ "path": "/triggers/{trigger_id}",
1857
+ "pathParams": [
1858
+ "trigger_id"
1859
+ ],
1860
+ "multiSegment": [],
1861
+ "query": [],
1862
+ "headers": [],
1863
+ "bodyFlags": [
1864
+ {
1865
+ "name": "name",
1866
+ "type": "string",
1867
+ "required": false,
1868
+ "description": "Default the trigger's id."
1869
+ },
1870
+ {
1871
+ "name": "enabled",
1872
+ "type": "boolean",
1873
+ "required": false,
1874
+ "description": "Off, it fires nothing; on again, it goes on from now: the time it was off is skipped, never caught up."
1875
+ },
1876
+ {
1877
+ "name": "catchup_window_s",
1878
+ "type": "integer",
1879
+ "required": false,
1880
+ "description": ""
1881
+ }
1882
+ ],
1883
+ "hasBody": true,
1884
+ "bodyRequired": true,
1885
+ "bodyTypes": [
1886
+ "application/json"
1887
+ ],
1888
+ "secretBody": false,
1889
+ "raw": false,
1890
+ "summary": "Change a trigger, or turn it off and on"
1891
+ },
1892
+ {
1893
+ "command": [
1894
+ "usage"
1895
+ ],
1896
+ "operationId": "getUsage",
1897
+ "method": "GET",
1898
+ "path": "/usage",
1899
+ "pathParams": [],
1900
+ "multiSegment": [],
1901
+ "query": [
1902
+ {
1903
+ "name": "from",
1904
+ "type": "string",
1905
+ "required": false,
1906
+ "description": "Start of the period, inclusive. Default the start of this calendar month, UTC."
1907
+ },
1908
+ {
1909
+ "name": "to",
1910
+ "type": "string",
1911
+ "required": false,
1912
+ "description": "End of the period, exclusive. Default now."
1913
+ },
1914
+ {
1915
+ "name": "group_by",
1916
+ "type": "string",
1917
+ "enum": [
1918
+ "meter",
1919
+ "agent",
1920
+ "key",
1921
+ "day",
1922
+ "region"
1923
+ ],
1924
+ "required": false,
1925
+ "description": ""
1926
+ }
1927
+ ],
1928
+ "headers": [],
1929
+ "bodyFlags": [],
1930
+ "hasBody": false,
1931
+ "bodyRequired": false,
1932
+ "bodyTypes": [],
1933
+ "secretBody": false,
1934
+ "raw": false,
1935
+ "summary": "Usage by meter over a period"
1936
+ },
1937
+ {
1938
+ "command": [
1939
+ "webhook",
1940
+ "delete"
1941
+ ],
1942
+ "operationId": "deleteWebhook",
1943
+ "method": "DELETE",
1944
+ "path": "/settings/webhook",
1945
+ "pathParams": [],
1946
+ "multiSegment": [],
1947
+ "query": [],
1948
+ "headers": [],
1949
+ "bodyFlags": [],
1950
+ "hasBody": false,
1951
+ "bodyRequired": false,
1952
+ "bodyTypes": [],
1953
+ "secretBody": false,
1954
+ "raw": false,
1955
+ "summary": "Remove the webhook; its pending messages are dropped, the log of attempts is kept"
1956
+ },
1957
+ {
1958
+ "command": [
1959
+ "webhook",
1960
+ "deliveries"
1961
+ ],
1962
+ "operationId": "listWebhookDeliveries",
1963
+ "method": "GET",
1964
+ "path": "/settings/webhook/deliveries",
1965
+ "pathParams": [],
1966
+ "multiSegment": [],
1967
+ "query": [],
1968
+ "headers": [],
1969
+ "bodyFlags": [],
1970
+ "hasBody": false,
1971
+ "bodyRequired": false,
1972
+ "bodyTypes": [],
1973
+ "secretBody": false,
1974
+ "raw": false,
1975
+ "summary": "The last 50 attempts, newest first"
1976
+ },
1977
+ {
1978
+ "command": [
1979
+ "webhook",
1980
+ "get"
1981
+ ],
1982
+ "operationId": "getWebhook",
1983
+ "method": "GET",
1984
+ "path": "/settings/webhook",
1985
+ "pathParams": [],
1986
+ "multiSegment": [],
1987
+ "query": [],
1988
+ "headers": [],
1989
+ "bodyFlags": [],
1990
+ "hasBody": false,
1991
+ "bodyRequired": false,
1992
+ "bodyTypes": [],
1993
+ "secretBody": false,
1994
+ "raw": false,
1995
+ "summary": "The webhook this server POSTs run notices to, if one is set; never its secret"
1996
+ },
1997
+ {
1998
+ "command": [
1999
+ "webhook",
2000
+ "redeliver"
2001
+ ],
2002
+ "operationId": "redeliverWebhook",
2003
+ "method": "POST",
2004
+ "path": "/settings/webhook/deliveries/{webhook_id}/redeliver",
2005
+ "pathParams": [
2006
+ "webhook_id"
2007
+ ],
2008
+ "multiSegment": [],
2009
+ "query": [],
2010
+ "headers": [],
2011
+ "bodyFlags": [],
2012
+ "hasBody": false,
2013
+ "bodyRequired": false,
2014
+ "bodyTypes": [],
2015
+ "secretBody": false,
2016
+ "raw": false,
2017
+ "summary": "Send a message of the log again, once now, under the same webhook-id and body"
2018
+ },
2019
+ {
2020
+ "command": [
2021
+ "webhook",
2022
+ "save"
2023
+ ],
2024
+ "operationId": "saveWebhook",
2025
+ "method": "PUT",
2026
+ "path": "/settings/webhook",
2027
+ "pathParams": [],
2028
+ "multiSegment": [],
2029
+ "query": [],
2030
+ "headers": [],
2031
+ "bodyFlags": [
2032
+ {
2033
+ "name": "url",
2034
+ "type": "string",
2035
+ "required": true,
2036
+ "description": ""
2037
+ }
2038
+ ],
2039
+ "hasBody": true,
2040
+ "bodyRequired": true,
2041
+ "bodyTypes": [
2042
+ "application/json"
2043
+ ],
2044
+ "secretBody": false,
2045
+ "raw": false,
2046
+ "summary": "Set the webhook's URL"
2047
+ },
2048
+ {
2049
+ "command": [
2050
+ "webhook",
2051
+ "test"
2052
+ ],
2053
+ "operationId": "testWebhook",
2054
+ "method": "POST",
2055
+ "path": "/settings/webhook/test",
2056
+ "pathParams": [],
2057
+ "multiSegment": [],
2058
+ "query": [],
2059
+ "headers": [],
2060
+ "bodyFlags": [],
2061
+ "hasBody": false,
2062
+ "bodyRequired": false,
2063
+ "bodyTypes": [],
2064
+ "secretBody": false,
2065
+ "raw": false,
2066
+ "summary": "Send a `webhook.test` message now, once, and say how it went"
2067
+ },
2068
+ {
2069
+ "command": [
2070
+ "workflows",
2071
+ "validate"
2072
+ ],
2073
+ "operationId": "validateWorkflow",
2074
+ "method": "POST",
2075
+ "path": "/workflows/validate",
2076
+ "pathParams": [],
2077
+ "multiSegment": [],
2078
+ "query": [],
2079
+ "headers": [],
2080
+ "bodyFlags": [],
2081
+ "hasBody": true,
2082
+ "bodyRequired": true,
2083
+ "bodyTypes": [
2084
+ "application/json"
2085
+ ],
2086
+ "secretBody": false,
2087
+ "raw": false,
2088
+ "summary": "Check a workflow definition without saving it"
2089
+ }
2090
+ ];