-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjects-objects.yaml
More file actions
516 lines (516 loc) · 15.3 KB
/
objects-objects.yaml
File metadata and controls
516 lines (516 loc) · 15.3 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
naftiko: 1.0.0-alpha2
info:
label: Runloop Objects (objects)
description: Runloop objects capability covering one Runloop business surface. 9 operations.
tags:
- Runloop
- Objects
- AI Agents
- Sandboxes
created: '2026-05-25'
modified: '2026-05-25'
binds:
- namespace: env
keys:
RUNLOOP_API_KEY: RUNLOOP_API_KEY
capability:
consumes:
- type: http
namespace: objects-objects
baseUri: https://api.runloop.ai
description: Runloop objects business capability. Self-contained, no shared references.
resources:
- name: v1-objects
path: /v1/objects
operations:
- name: createObject
method: POST
description: Create an Object.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: listObjects
method: GET
description: List Objects.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: limit
in: query
type: integer
description: The limit of items to return. Default is 20. Max is 5000.
required: false
- name: starting_after
in: query
type: string
description: Load the next page of data starting after the item with the given ID.
required: false
- name: name
in: query
type: string
description: Filter storage objects by name (partial match supported).
required: false
- name: content_type
in: query
type: string
description: Filter storage objects by content type.
required: false
- name: state
in: query
type: string
description: Filter storage objects by state.
required: false
- name: search
in: query
type: string
description: Search by object ID or name.
required: false
- name: include_total_count
in: query
type: boolean
description: If true (default), includes total_count in the response. Set to false to skip the count query for better
performance on large datasets.
required: false
- name: v1-objects-list-public
path: /v1/objects/list_public
operations:
- name: listPublicObjects
method: GET
description: List Public Objects.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: limit
in: query
type: integer
description: The limit of items to return. Default is 20. Max is 5000.
required: false
- name: starting_after
in: query
type: string
description: Load the next page of data starting after the item with the given ID.
required: false
- name: name
in: query
type: string
description: Filter storage objects by name (partial match supported).
required: false
- name: content_type
in: query
type: string
description: Filter storage objects by content type.
required: false
- name: state
in: query
type: string
description: Filter storage objects by state.
required: false
- name: search
in: query
type: string
description: Search by object ID or name.
required: false
- name: include_total_count
in: query
type: boolean
description: If true (default), includes total_count in the response. Set to false to skip the count query for better
performance on large datasets.
required: false
- name: v1-objects-metadata-keys
path: /v1/objects/metadata/keys
operations:
- name: getObjectMetadataKeys
method: GET
description: List available object metadata keys.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: _
in: query
type: string
description: ''
required: false
- name: v1-objects-metadata-keys-key-values
path: /v1/objects/metadata/keys/{key}/values
operations:
- name: getObjectMetadataValues
method: GET
description: List values for a specific object metadata key.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: key
in: path
type: string
description: The metadata key to get values for.
required: true
- name: v1-objects-id
path: /v1/objects/{id}
operations:
- name: getObject
method: GET
description: Get an Object.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: string
description: The unique identifier of the Object to retrieve.
required: true
- name: v1-objects-id-complete
path: /v1/objects/{id}/complete
operations:
- name: completeObject
method: POST
description: Complete Object Upload.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: string
description: The unique identifier of the Object to complete.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-objects-id-delete
path: /v1/objects/{id}/delete
operations:
- name: deleteObject
method: POST
description: Delete an Object.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: string
description: The unique identifier of the Object to delete.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: v1-objects-id-download
path: /v1/objects/{id}/download
operations:
- name: generateDownloadUrl
method: GET
description: Generate Download URL for Object.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: string
description: The unique identifier of the Object to generate download URL for.
required: true
- name: duration_seconds
in: query
type: integer
description: 'Duration in seconds for the presigned URL validity (default: 3600).'
required: false
authentication:
type: bearer
value: '{{env.RUNLOOP_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: objects-objects-rest
port: 8080
description: REST adapter for Runloop objects. One Spectral-compliant resource per consumed operation.
resources:
- path: /v1/objects
name: v1-objects
description: REST surface for v1-objects.
operations:
- method: POST
name: createObject
description: Create an Object.
call: objects-objects.createObject
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: GET
name: listObjects
description: List Objects.
call: objects-objects.listObjects
with:
limit: rest.params.limit
starting_after: rest.params.starting_after
name: rest.params.name
content_type: rest.params.content_type
state: rest.params.state
search: rest.params.search
include_total_count: rest.params.include_total_count
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/list_public
name: v1-objects-list-public
description: REST surface for v1-objects-list-public.
operations:
- method: GET
name: listPublicObjects
description: List Public Objects.
call: objects-objects.listPublicObjects
with:
limit: rest.params.limit
starting_after: rest.params.starting_after
name: rest.params.name
content_type: rest.params.content_type
state: rest.params.state
search: rest.params.search
include_total_count: rest.params.include_total_count
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/metadata/keys
name: v1-objects-metadata-keys
description: REST surface for v1-objects-metadata-keys.
operations:
- method: GET
name: getObjectMetadataKeys
description: List available object metadata keys.
call: objects-objects.getObjectMetadataKeys
with:
_: rest.params._
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/metadata/keys/{key}/values
name: v1-objects-metadata-keys-key-values
description: REST surface for v1-objects-metadata-keys-key-values.
operations:
- method: GET
name: getObjectMetadataValues
description: List values for a specific object metadata key.
call: objects-objects.getObjectMetadataValues
with:
key: rest.params.key
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/{id}
name: v1-objects-id
description: REST surface for v1-objects-id.
operations:
- method: GET
name: getObject
description: Get an Object.
call: objects-objects.getObject
with:
id: rest.params.id
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/{id}/complete
name: v1-objects-id-complete
description: REST surface for v1-objects-id-complete.
operations:
- method: POST
name: completeObject
description: Complete Object Upload.
call: objects-objects.completeObject
with:
id: rest.params.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/{id}/delete
name: v1-objects-id-delete
description: REST surface for v1-objects-id-delete.
operations:
- method: POST
name: deleteObject
description: Delete an Object.
call: objects-objects.deleteObject
with:
id: rest.params.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/objects/{id}/download
name: v1-objects-id-download
description: REST surface for v1-objects-id-download.
operations:
- method: GET
name: generateDownloadUrl
description: Generate Download URL for Object.
call: objects-objects.generateDownloadUrl
with:
id: rest.params.id
duration_seconds: rest.params.duration_seconds
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: objects-objects-mcp
port: 9090
transport: http
description: MCP adapter for Runloop objects. One tool per consumed operation.
tools:
- name: runloop-objects-objects-createObject
description: Create an Object.
hints:
readOnly: false
destructive: false
idempotent: false
call: objects-objects.createObject
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-listObjects
description: List Objects.
hints:
readOnly: true
destructive: false
idempotent: true
call: objects-objects.listObjects
with:
limit: tools.limit
starting_after: tools.starting_after
name: tools.name
content_type: tools.content_type
state: tools.state
search: tools.search
include_total_count: tools.include_total_count
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-listPublicObjects
description: List Public Objects.
hints:
readOnly: true
destructive: false
idempotent: true
call: objects-objects.listPublicObjects
with:
limit: tools.limit
starting_after: tools.starting_after
name: tools.name
content_type: tools.content_type
state: tools.state
search: tools.search
include_total_count: tools.include_total_count
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-getObjectMetadataKeys
description: List available object metadata keys.
hints:
readOnly: true
destructive: false
idempotent: true
call: objects-objects.getObjectMetadataKeys
with:
_: tools._
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-getObjectMetadataValues
description: List values for a specific object metadata key.
hints:
readOnly: true
destructive: false
idempotent: true
call: objects-objects.getObjectMetadataValues
with:
key: tools.key
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-getObject
description: Get an Object.
hints:
readOnly: true
destructive: false
idempotent: true
call: objects-objects.getObject
with:
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-completeObject
description: Complete Object Upload.
hints:
readOnly: false
destructive: false
idempotent: false
call: objects-objects.completeObject
with:
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-deleteObject
description: Delete an Object.
hints:
readOnly: false
destructive: false
idempotent: false
call: objects-objects.deleteObject
with:
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: runloop-objects-objects-generateDownloadUrl
description: Generate Download URL for Object.
hints:
readOnly: true
destructive: false
idempotent: true
call: objects-objects.generateDownloadUrl
with:
id: tools.id
duration_seconds: tools.duration_seconds
outputParameters:
- type: object
mapping: $.