@tokenlabai/mcp-server 0.6.8 → 0.6.9
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.
- package/README.md +2 -2
- package/contract/openapi.json +262 -14
- package/generated/public-contract.json +3 -3
- package/generated/tools.json +52 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ It exposes public catalog tools for agents that need to choose models, inspect s
|
|
|
10
10
|
|
|
11
11
|
## Generated Tool Profiles
|
|
12
12
|
|
|
13
|
-
The checked-in `generated/tools.json` manifest is generated from TokenLab's public OpenAPI document plus the small MCP-only overlay in `contract/mcp-overlay.json`. Version 0.6.
|
|
13
|
+
The checked-in `generated/tools.json` manifest is generated from TokenLab's public OpenAPI document plus the small MCP-only overlay in `contract/mcp-overlay.json`. Version 0.6.9 generates 75 endpoint tools; two composite discovery tools are registered at runtime.
|
|
14
14
|
|
|
15
15
|
| Profile | Endpoint tools | Coverage |
|
|
16
16
|
| --- | ---: | --- |
|
|
@@ -126,7 +126,7 @@ This repository includes `server.json` for the official MCP Registry.
|
|
|
126
126
|
|
|
127
127
|
Release metadata:
|
|
128
128
|
|
|
129
|
-
- npm package: `@tokenlabai/mcp-server@0.6.
|
|
129
|
+
- npm package: `@tokenlabai/mcp-server@0.6.9`
|
|
130
130
|
- MCP registry name: `io.github.hedging8563/tokenlab`
|
|
131
131
|
- `package.json.mcpName`: `io.github.hedging8563/tokenlab`
|
|
132
132
|
|
package/contract/openapi.json
CHANGED
|
@@ -1759,7 +1759,8 @@
|
|
|
1759
1759
|
"schema": {
|
|
1760
1760
|
"type": "integer",
|
|
1761
1761
|
"minimum": 1,
|
|
1762
|
-
"maximum":
|
|
1762
|
+
"maximum": 1000,
|
|
1763
|
+
"default": 20
|
|
1763
1764
|
},
|
|
1764
1765
|
"description": "Maximum number of batches to return"
|
|
1765
1766
|
}
|
|
@@ -1870,7 +1871,7 @@
|
|
|
1870
1871
|
"content": {
|
|
1871
1872
|
"application/json": {
|
|
1872
1873
|
"schema": {
|
|
1873
|
-
"$ref": "#/components/schemas/
|
|
1874
|
+
"$ref": "#/components/schemas/AnthropicDeletedMessageBatch"
|
|
1874
1875
|
}
|
|
1875
1876
|
}
|
|
1876
1877
|
}
|
|
@@ -3322,8 +3323,19 @@
|
|
|
3322
3323
|
"Files"
|
|
3323
3324
|
],
|
|
3324
3325
|
"summary": "Upload file",
|
|
3325
|
-
"description": "Uploads a
|
|
3326
|
+
"description": "Uploads a TokenLab/OpenAI-compatible batch or image file. With anthropic-beta: files-api-2025-04-14, uploads an Anthropic Files resource without a purpose field and returns Anthropic file metadata.",
|
|
3326
3327
|
"operationId": "uploadFile",
|
|
3328
|
+
"parameters": [
|
|
3329
|
+
{
|
|
3330
|
+
"name": "anthropic-beta",
|
|
3331
|
+
"in": "header",
|
|
3332
|
+
"required": false,
|
|
3333
|
+
"schema": {
|
|
3334
|
+
"type": "string"
|
|
3335
|
+
},
|
|
3336
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
3337
|
+
}
|
|
3338
|
+
],
|
|
3327
3339
|
"requestBody": {
|
|
3328
3340
|
"required": true,
|
|
3329
3341
|
"content": {
|
|
@@ -3331,8 +3343,7 @@
|
|
|
3331
3343
|
"schema": {
|
|
3332
3344
|
"type": "object",
|
|
3333
3345
|
"required": [
|
|
3334
|
-
"file"
|
|
3335
|
-
"purpose"
|
|
3346
|
+
"file"
|
|
3336
3347
|
],
|
|
3337
3348
|
"properties": {
|
|
3338
3349
|
"file": {
|
|
@@ -3346,7 +3357,7 @@
|
|
|
3346
3357
|
"user_data",
|
|
3347
3358
|
"vision"
|
|
3348
3359
|
],
|
|
3349
|
-
"description": "
|
|
3360
|
+
"description": "Required in TokenLab/OpenAI-compatible mode: use batch for Batch API JSONL files, or user_data/vision for image edits. Omit in Anthropic Files mode."
|
|
3350
3361
|
},
|
|
3351
3362
|
"model": {
|
|
3352
3363
|
"type": "string",
|
|
@@ -3363,7 +3374,14 @@
|
|
|
3363
3374
|
"content": {
|
|
3364
3375
|
"application/json": {
|
|
3365
3376
|
"schema": {
|
|
3366
|
-
"
|
|
3377
|
+
"oneOf": [
|
|
3378
|
+
{
|
|
3379
|
+
"$ref": "#/components/schemas/FileObject"
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
"$ref": "#/components/schemas/AnthropicFileObject"
|
|
3383
|
+
}
|
|
3384
|
+
]
|
|
3367
3385
|
}
|
|
3368
3386
|
}
|
|
3369
3387
|
}
|
|
@@ -3392,7 +3410,8 @@
|
|
|
3392
3410
|
"schema": {
|
|
3393
3411
|
"type": "integer",
|
|
3394
3412
|
"minimum": 1,
|
|
3395
|
-
"maximum":
|
|
3413
|
+
"maximum": 1000,
|
|
3414
|
+
"default": 20
|
|
3396
3415
|
}
|
|
3397
3416
|
},
|
|
3398
3417
|
{
|
|
@@ -3402,6 +3421,30 @@
|
|
|
3402
3421
|
"type": "string"
|
|
3403
3422
|
}
|
|
3404
3423
|
},
|
|
3424
|
+
{
|
|
3425
|
+
"name": "after_id",
|
|
3426
|
+
"in": "query",
|
|
3427
|
+
"schema": {
|
|
3428
|
+
"type": "string"
|
|
3429
|
+
},
|
|
3430
|
+
"description": "Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta header and cannot be combined with before_id."
|
|
3431
|
+
},
|
|
3432
|
+
{
|
|
3433
|
+
"name": "before_id",
|
|
3434
|
+
"in": "query",
|
|
3435
|
+
"schema": {
|
|
3436
|
+
"type": "string"
|
|
3437
|
+
},
|
|
3438
|
+
"description": "Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta header and cannot be combined with after_id."
|
|
3439
|
+
},
|
|
3440
|
+
{
|
|
3441
|
+
"name": "scope_id",
|
|
3442
|
+
"in": "query",
|
|
3443
|
+
"schema": {
|
|
3444
|
+
"type": "string"
|
|
3445
|
+
},
|
|
3446
|
+
"description": "Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rather than silently ignoring this value."
|
|
3447
|
+
},
|
|
3405
3448
|
{
|
|
3406
3449
|
"name": "purpose",
|
|
3407
3450
|
"in": "query",
|
|
@@ -3415,6 +3458,15 @@
|
|
|
3415
3458
|
]
|
|
3416
3459
|
},
|
|
3417
3460
|
"description": "Optional file purpose filter. batch and batch_output cover Batch API files; user_data and vision cover TokenLab image/reference file bindings. Anthropic Files API mode is selected by Anthropic headers rather than this query parameter."
|
|
3461
|
+
},
|
|
3462
|
+
{
|
|
3463
|
+
"name": "anthropic-beta",
|
|
3464
|
+
"in": "header",
|
|
3465
|
+
"required": false,
|
|
3466
|
+
"schema": {
|
|
3467
|
+
"type": "string"
|
|
3468
|
+
},
|
|
3469
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
3418
3470
|
}
|
|
3419
3471
|
],
|
|
3420
3472
|
"responses": {
|
|
@@ -3423,7 +3475,14 @@
|
|
|
3423
3475
|
"content": {
|
|
3424
3476
|
"application/json": {
|
|
3425
3477
|
"schema": {
|
|
3426
|
-
"
|
|
3478
|
+
"oneOf": [
|
|
3479
|
+
{
|
|
3480
|
+
"$ref": "#/components/schemas/FileListResponse"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"$ref": "#/components/schemas/AnthropicFileListResponse"
|
|
3484
|
+
}
|
|
3485
|
+
]
|
|
3427
3486
|
}
|
|
3428
3487
|
}
|
|
3429
3488
|
}
|
|
@@ -3449,6 +3508,15 @@
|
|
|
3449
3508
|
"schema": {
|
|
3450
3509
|
"type": "string"
|
|
3451
3510
|
}
|
|
3511
|
+
},
|
|
3512
|
+
{
|
|
3513
|
+
"name": "anthropic-beta",
|
|
3514
|
+
"in": "header",
|
|
3515
|
+
"required": false,
|
|
3516
|
+
"schema": {
|
|
3517
|
+
"type": "string"
|
|
3518
|
+
},
|
|
3519
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
3452
3520
|
}
|
|
3453
3521
|
],
|
|
3454
3522
|
"responses": {
|
|
@@ -3457,7 +3525,14 @@
|
|
|
3457
3525
|
"content": {
|
|
3458
3526
|
"application/json": {
|
|
3459
3527
|
"schema": {
|
|
3460
|
-
"
|
|
3528
|
+
"oneOf": [
|
|
3529
|
+
{
|
|
3530
|
+
"$ref": "#/components/schemas/FileObject"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"$ref": "#/components/schemas/AnthropicFileObject"
|
|
3534
|
+
}
|
|
3535
|
+
]
|
|
3461
3536
|
}
|
|
3462
3537
|
}
|
|
3463
3538
|
}
|
|
@@ -3483,6 +3558,15 @@
|
|
|
3483
3558
|
"type": "string"
|
|
3484
3559
|
},
|
|
3485
3560
|
"description": "File ID returned by the Files API."
|
|
3561
|
+
},
|
|
3562
|
+
{
|
|
3563
|
+
"name": "anthropic-beta",
|
|
3564
|
+
"in": "header",
|
|
3565
|
+
"required": false,
|
|
3566
|
+
"schema": {
|
|
3567
|
+
"type": "string"
|
|
3568
|
+
},
|
|
3569
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
3486
3570
|
}
|
|
3487
3571
|
],
|
|
3488
3572
|
"responses": {
|
|
@@ -3491,7 +3575,14 @@
|
|
|
3491
3575
|
"content": {
|
|
3492
3576
|
"application/json": {
|
|
3493
3577
|
"schema": {
|
|
3494
|
-
"
|
|
3578
|
+
"oneOf": [
|
|
3579
|
+
{
|
|
3580
|
+
"$ref": "#/components/schemas/FileDeletedObject"
|
|
3581
|
+
},
|
|
3582
|
+
{
|
|
3583
|
+
"$ref": "#/components/schemas/AnthropicDeletedFile"
|
|
3584
|
+
}
|
|
3585
|
+
]
|
|
3495
3586
|
}
|
|
3496
3587
|
}
|
|
3497
3588
|
}
|
|
@@ -8557,6 +8648,7 @@
|
|
|
8557
8648
|
"unauthorized",
|
|
8558
8649
|
"invalid_api_key",
|
|
8559
8650
|
"expired_api_key",
|
|
8651
|
+
"permission_error",
|
|
8560
8652
|
"insufficient_balance",
|
|
8561
8653
|
"quota_exceeded",
|
|
8562
8654
|
"invalid_request_error",
|
|
@@ -10132,6 +10224,118 @@
|
|
|
10132
10224
|
}
|
|
10133
10225
|
}
|
|
10134
10226
|
},
|
|
10227
|
+
"AnthropicFileObject": {
|
|
10228
|
+
"type": "object",
|
|
10229
|
+
"required": [
|
|
10230
|
+
"id",
|
|
10231
|
+
"type",
|
|
10232
|
+
"filename",
|
|
10233
|
+
"mime_type",
|
|
10234
|
+
"size_bytes",
|
|
10235
|
+
"created_at"
|
|
10236
|
+
],
|
|
10237
|
+
"properties": {
|
|
10238
|
+
"id": {
|
|
10239
|
+
"type": "string",
|
|
10240
|
+
"example": "file_01ABC123"
|
|
10241
|
+
},
|
|
10242
|
+
"type": {
|
|
10243
|
+
"type": "string",
|
|
10244
|
+
"enum": [
|
|
10245
|
+
"file"
|
|
10246
|
+
]
|
|
10247
|
+
},
|
|
10248
|
+
"filename": {
|
|
10249
|
+
"type": "string"
|
|
10250
|
+
},
|
|
10251
|
+
"mime_type": {
|
|
10252
|
+
"type": "string"
|
|
10253
|
+
},
|
|
10254
|
+
"size_bytes": {
|
|
10255
|
+
"type": "integer",
|
|
10256
|
+
"minimum": 0
|
|
10257
|
+
},
|
|
10258
|
+
"created_at": {
|
|
10259
|
+
"type": "string",
|
|
10260
|
+
"format": "date-time"
|
|
10261
|
+
},
|
|
10262
|
+
"downloadable": {
|
|
10263
|
+
"type": "boolean"
|
|
10264
|
+
},
|
|
10265
|
+
"scope": {
|
|
10266
|
+
"type": "object",
|
|
10267
|
+
"nullable": true,
|
|
10268
|
+
"required": [
|
|
10269
|
+
"id",
|
|
10270
|
+
"type"
|
|
10271
|
+
],
|
|
10272
|
+
"properties": {
|
|
10273
|
+
"id": {
|
|
10274
|
+
"type": "string"
|
|
10275
|
+
},
|
|
10276
|
+
"type": {
|
|
10277
|
+
"type": "string",
|
|
10278
|
+
"enum": [
|
|
10279
|
+
"session"
|
|
10280
|
+
]
|
|
10281
|
+
}
|
|
10282
|
+
},
|
|
10283
|
+
"additionalProperties": true
|
|
10284
|
+
}
|
|
10285
|
+
},
|
|
10286
|
+
"additionalProperties": true
|
|
10287
|
+
},
|
|
10288
|
+
"AnthropicFileListResponse": {
|
|
10289
|
+
"type": "object",
|
|
10290
|
+
"required": [
|
|
10291
|
+
"data",
|
|
10292
|
+
"first_id",
|
|
10293
|
+
"last_id",
|
|
10294
|
+
"has_more"
|
|
10295
|
+
],
|
|
10296
|
+
"properties": {
|
|
10297
|
+
"data": {
|
|
10298
|
+
"type": "array",
|
|
10299
|
+
"items": {
|
|
10300
|
+
"$ref": "#/components/schemas/AnthropicFileObject"
|
|
10301
|
+
}
|
|
10302
|
+
},
|
|
10303
|
+
"first_id": {
|
|
10304
|
+
"type": [
|
|
10305
|
+
"string",
|
|
10306
|
+
"null"
|
|
10307
|
+
]
|
|
10308
|
+
},
|
|
10309
|
+
"last_id": {
|
|
10310
|
+
"type": [
|
|
10311
|
+
"string",
|
|
10312
|
+
"null"
|
|
10313
|
+
]
|
|
10314
|
+
},
|
|
10315
|
+
"has_more": {
|
|
10316
|
+
"type": "boolean"
|
|
10317
|
+
}
|
|
10318
|
+
},
|
|
10319
|
+
"additionalProperties": true
|
|
10320
|
+
},
|
|
10321
|
+
"AnthropicDeletedFile": {
|
|
10322
|
+
"type": "object",
|
|
10323
|
+
"required": [
|
|
10324
|
+
"id"
|
|
10325
|
+
],
|
|
10326
|
+
"properties": {
|
|
10327
|
+
"id": {
|
|
10328
|
+
"type": "string"
|
|
10329
|
+
},
|
|
10330
|
+
"type": {
|
|
10331
|
+
"type": "string",
|
|
10332
|
+
"enum": [
|
|
10333
|
+
"file_deleted"
|
|
10334
|
+
]
|
|
10335
|
+
}
|
|
10336
|
+
},
|
|
10337
|
+
"additionalProperties": true
|
|
10338
|
+
},
|
|
10135
10339
|
"BatchRequestCounts": {
|
|
10136
10340
|
"type": "object",
|
|
10137
10341
|
"required": [
|
|
@@ -10741,18 +10945,26 @@
|
|
|
10741
10945
|
"$ref": "#/components/schemas/AnthropicMessagesRequest"
|
|
10742
10946
|
}
|
|
10743
10947
|
},
|
|
10744
|
-
"additionalProperties":
|
|
10948
|
+
"additionalProperties": true
|
|
10745
10949
|
}
|
|
10746
10950
|
}
|
|
10747
10951
|
},
|
|
10748
|
-
"additionalProperties":
|
|
10952
|
+
"additionalProperties": true
|
|
10749
10953
|
},
|
|
10750
10954
|
"AnthropicMessageBatch": {
|
|
10751
10955
|
"type": "object",
|
|
10752
10956
|
"description": "Anthropic-compatible message batch object relayed from the provider.",
|
|
10753
10957
|
"required": [
|
|
10754
10958
|
"id",
|
|
10755
|
-
"type"
|
|
10959
|
+
"type",
|
|
10960
|
+
"processing_status",
|
|
10961
|
+
"request_counts",
|
|
10962
|
+
"ended_at",
|
|
10963
|
+
"created_at",
|
|
10964
|
+
"expires_at",
|
|
10965
|
+
"cancel_initiated_at",
|
|
10966
|
+
"archived_at",
|
|
10967
|
+
"results_url"
|
|
10756
10968
|
],
|
|
10757
10969
|
"properties": {
|
|
10758
10970
|
"id": {
|
|
@@ -10789,6 +11001,16 @@
|
|
|
10789
11001
|
"type": "string",
|
|
10790
11002
|
"description": "ISO timestamp when the batch expires, when available"
|
|
10791
11003
|
},
|
|
11004
|
+
"cancel_initiated_at": {
|
|
11005
|
+
"type": "string",
|
|
11006
|
+
"nullable": true,
|
|
11007
|
+
"description": "ISO timestamp when cancellation was initiated, when available"
|
|
11008
|
+
},
|
|
11009
|
+
"archived_at": {
|
|
11010
|
+
"type": "string",
|
|
11011
|
+
"nullable": true,
|
|
11012
|
+
"description": "ISO timestamp when the batch was archived, when available"
|
|
11013
|
+
},
|
|
10792
11014
|
"results_url": {
|
|
10793
11015
|
"type": "string",
|
|
10794
11016
|
"nullable": true,
|
|
@@ -10797,8 +11019,34 @@
|
|
|
10797
11019
|
},
|
|
10798
11020
|
"additionalProperties": true
|
|
10799
11021
|
},
|
|
11022
|
+
"AnthropicDeletedMessageBatch": {
|
|
11023
|
+
"type": "object",
|
|
11024
|
+
"required": [
|
|
11025
|
+
"id",
|
|
11026
|
+
"type"
|
|
11027
|
+
],
|
|
11028
|
+
"properties": {
|
|
11029
|
+
"id": {
|
|
11030
|
+
"type": "string",
|
|
11031
|
+
"description": "Deleted Message Batch identifier"
|
|
11032
|
+
},
|
|
11033
|
+
"type": {
|
|
11034
|
+
"type": "string",
|
|
11035
|
+
"enum": [
|
|
11036
|
+
"message_batch_deleted"
|
|
11037
|
+
]
|
|
11038
|
+
}
|
|
11039
|
+
},
|
|
11040
|
+
"additionalProperties": true
|
|
11041
|
+
},
|
|
10800
11042
|
"AnthropicMessageBatchListResponse": {
|
|
10801
11043
|
"type": "object",
|
|
11044
|
+
"required": [
|
|
11045
|
+
"data",
|
|
11046
|
+
"has_more",
|
|
11047
|
+
"first_id",
|
|
11048
|
+
"last_id"
|
|
11049
|
+
],
|
|
10802
11050
|
"properties": {
|
|
10803
11051
|
"data": {
|
|
10804
11052
|
"type": "array",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"id": "tokenlab-mcp-server",
|
|
6
6
|
"name": "@tokenlabai/mcp-server",
|
|
7
7
|
"title": "TokenLab MCP Server",
|
|
8
|
-
"version": "0.6.
|
|
8
|
+
"version": "0.6.9",
|
|
9
9
|
"registry_name": "io.github.hedging8563/tokenlab",
|
|
10
10
|
"source_url": "https://github.com/hedging8563/tokenlab-mcp-server",
|
|
11
11
|
"landing_url": "https://tokenlab.sh/mcp",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"openapi": "3.0.3",
|
|
26
26
|
"title": "TokenLab AI Gateway",
|
|
27
27
|
"version": "1.0.0",
|
|
28
|
-
"sha256": "
|
|
29
|
-
"tool_manifest_sha256": "
|
|
28
|
+
"sha256": "ca3a4d2897ad8a71e44194b629170678ce31ee678379617b2a4018fbff9ce900",
|
|
29
|
+
"tool_manifest_sha256": "344685636da44b3ba93589a8e64536148561f63cd26a75bd5dd59e6f072b132f"
|
|
30
30
|
},
|
|
31
31
|
"profiles": {
|
|
32
32
|
"catalog": {
|
package/generated/tools.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"openapi": "3.0.3",
|
|
7
7
|
"title": "TokenLab AI Gateway",
|
|
8
8
|
"version": "1.0.0",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "ca3a4d2897ad8a71e44194b629170678ce31ee678379617b2a4018fbff9ce900"
|
|
10
10
|
},
|
|
11
11
|
"default_profile": "core",
|
|
12
12
|
"profiles": [
|
|
@@ -905,7 +905,7 @@
|
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
},
|
|
908
|
-
"additionalProperties":
|
|
908
|
+
"additionalProperties": true
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
},
|
|
@@ -4304,6 +4304,10 @@
|
|
|
4304
4304
|
"file_id": {
|
|
4305
4305
|
"type": "string",
|
|
4306
4306
|
"description": "File ID returned by the Files API."
|
|
4307
|
+
},
|
|
4308
|
+
"anthropic-beta": {
|
|
4309
|
+
"type": "string",
|
|
4310
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
4307
4311
|
}
|
|
4308
4312
|
},
|
|
4309
4313
|
"required": [
|
|
@@ -4316,7 +4320,9 @@
|
|
|
4316
4320
|
"file_id"
|
|
4317
4321
|
],
|
|
4318
4322
|
"query": [],
|
|
4319
|
-
"header": [
|
|
4323
|
+
"header": [
|
|
4324
|
+
"anthropic-beta"
|
|
4325
|
+
],
|
|
4320
4326
|
"body": [],
|
|
4321
4327
|
"files": []
|
|
4322
4328
|
},
|
|
@@ -5888,7 +5894,8 @@
|
|
|
5888
5894
|
"limit": {
|
|
5889
5895
|
"type": "integer",
|
|
5890
5896
|
"minimum": 1,
|
|
5891
|
-
"maximum":
|
|
5897
|
+
"maximum": 1000,
|
|
5898
|
+
"default": 20,
|
|
5892
5899
|
"description": "Maximum number of batches to return"
|
|
5893
5900
|
}
|
|
5894
5901
|
},
|
|
@@ -5980,11 +5987,24 @@
|
|
|
5980
5987
|
"limit": {
|
|
5981
5988
|
"type": "integer",
|
|
5982
5989
|
"minimum": 1,
|
|
5983
|
-
"maximum":
|
|
5990
|
+
"maximum": 1000,
|
|
5991
|
+
"default": 20
|
|
5984
5992
|
},
|
|
5985
5993
|
"after": {
|
|
5986
5994
|
"type": "string"
|
|
5987
5995
|
},
|
|
5996
|
+
"after_id": {
|
|
5997
|
+
"type": "string",
|
|
5998
|
+
"description": "Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta header and cannot be combined with before_id."
|
|
5999
|
+
},
|
|
6000
|
+
"before_id": {
|
|
6001
|
+
"type": "string",
|
|
6002
|
+
"description": "Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta header and cannot be combined with after_id."
|
|
6003
|
+
},
|
|
6004
|
+
"scope_id": {
|
|
6005
|
+
"type": "string",
|
|
6006
|
+
"description": "Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rather than silently ignoring this value."
|
|
6007
|
+
},
|
|
5988
6008
|
"purpose": {
|
|
5989
6009
|
"type": "string",
|
|
5990
6010
|
"enum": [
|
|
@@ -5994,6 +6014,10 @@
|
|
|
5994
6014
|
"vision"
|
|
5995
6015
|
],
|
|
5996
6016
|
"description": "Optional file purpose filter. batch and batch_output cover Batch API files; user_data and vision cover TokenLab image/reference file bindings. Anthropic Files API mode is selected by Anthropic headers rather than this query parameter."
|
|
6017
|
+
},
|
|
6018
|
+
"anthropic-beta": {
|
|
6019
|
+
"type": "string",
|
|
6020
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
5997
6021
|
}
|
|
5998
6022
|
},
|
|
5999
6023
|
"additionalProperties": false
|
|
@@ -6003,9 +6027,14 @@
|
|
|
6003
6027
|
"query": [
|
|
6004
6028
|
"limit",
|
|
6005
6029
|
"after",
|
|
6030
|
+
"after_id",
|
|
6031
|
+
"before_id",
|
|
6032
|
+
"scope_id",
|
|
6006
6033
|
"purpose"
|
|
6007
6034
|
],
|
|
6008
|
-
"header": [
|
|
6035
|
+
"header": [
|
|
6036
|
+
"anthropic-beta"
|
|
6037
|
+
],
|
|
6009
6038
|
"body": [],
|
|
6010
6039
|
"files": []
|
|
6011
6040
|
},
|
|
@@ -6828,6 +6857,10 @@
|
|
|
6828
6857
|
"properties": {
|
|
6829
6858
|
"file_id": {
|
|
6830
6859
|
"type": "string"
|
|
6860
|
+
},
|
|
6861
|
+
"anthropic-beta": {
|
|
6862
|
+
"type": "string",
|
|
6863
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
6831
6864
|
}
|
|
6832
6865
|
},
|
|
6833
6866
|
"required": [
|
|
@@ -6840,7 +6873,9 @@
|
|
|
6840
6873
|
"file_id"
|
|
6841
6874
|
],
|
|
6842
6875
|
"query": [],
|
|
6843
|
-
"header": [
|
|
6876
|
+
"header": [
|
|
6877
|
+
"anthropic-beta"
|
|
6878
|
+
],
|
|
6844
6879
|
"body": [],
|
|
6845
6880
|
"files": []
|
|
6846
6881
|
},
|
|
@@ -7339,10 +7374,14 @@
|
|
|
7339
7374
|
"core",
|
|
7340
7375
|
"full"
|
|
7341
7376
|
],
|
|
7342
|
-
"description": "Upload file Uploads a
|
|
7377
|
+
"description": "Upload file Uploads a TokenLab/OpenAI-compatible batch or image file. With anthropic-beta: files-api-2025-04-14, uploads an Anthropic Files resource without a purpose field and returns Anthropic file metadata.",
|
|
7343
7378
|
"input_schema": {
|
|
7344
7379
|
"type": "object",
|
|
7345
7380
|
"properties": {
|
|
7381
|
+
"anthropic-beta": {
|
|
7382
|
+
"type": "string",
|
|
7383
|
+
"description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
|
|
7384
|
+
},
|
|
7346
7385
|
"file": {
|
|
7347
7386
|
"type": "string",
|
|
7348
7387
|
"description": "Pass local file path."
|
|
@@ -7354,7 +7393,7 @@
|
|
|
7354
7393
|
"user_data",
|
|
7355
7394
|
"vision"
|
|
7356
7395
|
],
|
|
7357
|
-
"description": "
|
|
7396
|
+
"description": "Required in TokenLab/OpenAI-compatible mode: use batch for Batch API JSONL files, or user_data/vision for image edits. Omit in Anthropic Files mode."
|
|
7358
7397
|
},
|
|
7359
7398
|
"model": {
|
|
7360
7399
|
"type": "string",
|
|
@@ -7362,15 +7401,16 @@
|
|
|
7362
7401
|
}
|
|
7363
7402
|
},
|
|
7364
7403
|
"required": [
|
|
7365
|
-
"file"
|
|
7366
|
-
"purpose"
|
|
7404
|
+
"file"
|
|
7367
7405
|
],
|
|
7368
7406
|
"additionalProperties": false
|
|
7369
7407
|
},
|
|
7370
7408
|
"bindings": {
|
|
7371
7409
|
"path": [],
|
|
7372
7410
|
"query": [],
|
|
7373
|
-
"header": [
|
|
7411
|
+
"header": [
|
|
7412
|
+
"anthropic-beta"
|
|
7413
|
+
],
|
|
7374
7414
|
"body": [
|
|
7375
7415
|
"file",
|
|
7376
7416
|
"purpose",
|
package/package.json
CHANGED