@agentmc/api 0.2.1 → 0.2.3
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/dist/cli.js +140 -149
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +112 -120
- package/dist/generated/operations.js +140 -149
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +246 -214
- package/dist/index.js +140 -149
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +1 -1
- package/docs/operations/agentHeartbeat.md +41 -17
- package/docs/operations/{agentConnectedInstructions.md → agentInstructions.md} +8 -7
- package/docs/operations/connectAgent.md +41 -5
- package/docs/operations/createCalendarItem.md +0 -10
- package/docs/operations/index.json +140 -149
- package/docs/operations/listCalendar.md +0 -10
- package/docs/operations/listNotifications.md +1 -1
- package/docs/operations/showCalendarItem.md +0 -10
- package/docs/operations/updateCalendarItem.md +0 -10
- package/examples/http/agentHeartbeat.ts +20 -8
- package/examples/http/{agentConnectedInstructions.ts → agentInstructions.ts} +1 -1
- package/examples/http/connectAgent.ts +19 -1
- package/package.json +3 -2
- package/spec/openapi.filtered.json +295 -260
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"example": {
|
|
31
31
|
"agent_id": 42,
|
|
32
32
|
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
33
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
34
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
33
|
+
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
34
|
+
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
35
35
|
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
36
36
|
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
37
37
|
"workspace": {
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"/agents/{agent}/instructions": {
|
|
68
|
+
"/agents/{agent}/agent-instructions": {
|
|
69
69
|
"get": {
|
|
70
70
|
"tags": [
|
|
71
71
|
"Agents"
|
|
72
72
|
],
|
|
73
|
-
"summary": "Return
|
|
74
|
-
"operationId": "
|
|
73
|
+
"summary": "Return agent instructions for a connected agent using bearer auth.",
|
|
74
|
+
"operationId": "agentInstructions",
|
|
75
75
|
"parameters": [
|
|
76
76
|
{
|
|
77
77
|
"name": "agent",
|
|
@@ -87,14 +87,15 @@
|
|
|
87
87
|
],
|
|
88
88
|
"responses": {
|
|
89
89
|
"200": {
|
|
90
|
-
"description": "
|
|
90
|
+
"description": "Agent instructions returned.",
|
|
91
91
|
"content": {
|
|
92
92
|
"application/json": {
|
|
93
93
|
"schema": {
|
|
94
|
-
"$ref": "#/components/schemas/
|
|
94
|
+
"$ref": "#/components/schemas/AgentInstructionsResponse"
|
|
95
95
|
},
|
|
96
96
|
"example": {
|
|
97
|
-
"
|
|
97
|
+
"agent_instructions": "# Agent Instructions",
|
|
98
|
+
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
98
99
|
"docs": [],
|
|
99
100
|
"schedules": [],
|
|
100
101
|
"config": {}
|
|
@@ -244,16 +245,28 @@
|
|
|
244
245
|
"agent": {
|
|
245
246
|
"id": 42,
|
|
246
247
|
"name": "codex-runtime-prod",
|
|
247
|
-
"
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
"identity": {
|
|
249
|
+
"name": "Jarvis",
|
|
250
|
+
"creature": "robot",
|
|
251
|
+
"vibe": "calm"
|
|
252
|
+
},
|
|
253
|
+
"models": {
|
|
254
|
+
"resolved": {
|
|
255
|
+
"default": "openai/gpt-5-codex",
|
|
256
|
+
"fallbacks": [
|
|
257
|
+
"anthropic/claude-sonnet-4-20250514"
|
|
258
|
+
]
|
|
251
259
|
},
|
|
252
|
-
{
|
|
253
|
-
"
|
|
254
|
-
|
|
260
|
+
"providers": {
|
|
261
|
+
"openai": [
|
|
262
|
+
"gpt-5-codex",
|
|
263
|
+
"gpt-4.1"
|
|
264
|
+
],
|
|
265
|
+
"anthropic": [
|
|
266
|
+
"claude-sonnet-4-20250514"
|
|
267
|
+
]
|
|
255
268
|
}
|
|
256
|
-
|
|
269
|
+
}
|
|
257
270
|
}
|
|
258
271
|
}
|
|
259
272
|
}
|
|
@@ -3304,7 +3317,7 @@
|
|
|
3304
3317
|
"tags": [
|
|
3305
3318
|
"Notifications"
|
|
3306
3319
|
],
|
|
3307
|
-
"summary": "List workspace notifications (mentions and
|
|
3320
|
+
"summary": "List workspace notifications (mentions, assignments, and comment activity) for the authenticated principal.",
|
|
3308
3321
|
"operationId": "listNotifications",
|
|
3309
3322
|
"responses": {
|
|
3310
3323
|
"200": {
|
|
@@ -3619,16 +3632,6 @@
|
|
|
3619
3632
|
"created_at": "2026-02-22T17:21:00Z"
|
|
3620
3633
|
}
|
|
3621
3634
|
],
|
|
3622
|
-
"links": [
|
|
3623
|
-
{
|
|
3624
|
-
"id": 42,
|
|
3625
|
-
"link_type": "example",
|
|
3626
|
-
"link_id": 42,
|
|
3627
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
3628
|
-
"title": "Example Title",
|
|
3629
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
3630
|
-
}
|
|
3631
|
-
],
|
|
3632
3635
|
"comments_count": 1,
|
|
3633
3636
|
"created_at": "2026-02-22T17:21:00Z",
|
|
3634
3637
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -3852,16 +3855,6 @@
|
|
|
3852
3855
|
"created_at": "2026-02-22T17:21:00Z"
|
|
3853
3856
|
}
|
|
3854
3857
|
],
|
|
3855
|
-
"links": [
|
|
3856
|
-
{
|
|
3857
|
-
"id": 42,
|
|
3858
|
-
"link_type": "example",
|
|
3859
|
-
"link_id": 42,
|
|
3860
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
3861
|
-
"title": "Example Title",
|
|
3862
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
3863
|
-
}
|
|
3864
|
-
],
|
|
3865
3858
|
"comments_count": 1,
|
|
3866
3859
|
"created_at": "2026-02-22T17:21:00Z",
|
|
3867
3860
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -3959,16 +3952,6 @@
|
|
|
3959
3952
|
"created_at": "2026-02-22T17:21:00Z"
|
|
3960
3953
|
}
|
|
3961
3954
|
],
|
|
3962
|
-
"links": [
|
|
3963
|
-
{
|
|
3964
|
-
"id": 42,
|
|
3965
|
-
"link_type": "example",
|
|
3966
|
-
"link_id": 42,
|
|
3967
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
3968
|
-
"title": "Example Title",
|
|
3969
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
3970
|
-
}
|
|
3971
|
-
],
|
|
3972
3955
|
"comments_count": 1,
|
|
3973
3956
|
"created_at": "2026-02-22T17:21:00Z",
|
|
3974
3957
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -4055,16 +4038,6 @@
|
|
|
4055
4038
|
"created_at": "2026-02-22T17:21:00Z"
|
|
4056
4039
|
}
|
|
4057
4040
|
],
|
|
4058
|
-
"links": [
|
|
4059
|
-
{
|
|
4060
|
-
"id": 42,
|
|
4061
|
-
"link_type": "example",
|
|
4062
|
-
"link_id": 42,
|
|
4063
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
4064
|
-
"title": "Example Title",
|
|
4065
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
4066
|
-
}
|
|
4067
|
-
],
|
|
4068
4041
|
"comments_count": 1,
|
|
4069
4042
|
"created_at": "2026-02-22T17:21:00Z",
|
|
4070
4043
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -5200,13 +5173,13 @@
|
|
|
5200
5173
|
"agent_instructions_endpoint": {
|
|
5201
5174
|
"type": "string",
|
|
5202
5175
|
"format": "uri",
|
|
5203
|
-
"description": "Endpoint for agent
|
|
5176
|
+
"description": "Endpoint for agent instructions updates.",
|
|
5204
5177
|
"example": "https://agentmc.example.com/resource"
|
|
5205
5178
|
},
|
|
5206
5179
|
"agent_authenticated_instructions_endpoint": {
|
|
5207
5180
|
"type": "string",
|
|
5208
5181
|
"format": "uri",
|
|
5209
|
-
"description": "Authenticated endpoint for agent
|
|
5182
|
+
"description": "Authenticated endpoint for agent instructions updates.",
|
|
5210
5183
|
"example": "https://agentmc.example.com/resource"
|
|
5211
5184
|
},
|
|
5212
5185
|
"agent_instructions_version": {
|
|
@@ -5245,12 +5218,12 @@
|
|
|
5245
5218
|
"example": true
|
|
5246
5219
|
}
|
|
5247
5220
|
},
|
|
5248
|
-
"description": "Connect/registration response with agent credentials, authenticated instructions endpoint, and OpenAPI URL.",
|
|
5221
|
+
"description": "Connect/registration response with agent credentials, authenticated agent instructions endpoint, and OpenAPI URL.",
|
|
5249
5222
|
"example": {
|
|
5250
5223
|
"agent_id": 42,
|
|
5251
5224
|
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
5252
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
5253
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
5225
|
+
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
5226
|
+
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
5254
5227
|
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
5255
5228
|
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
5256
5229
|
"workspace": {
|
|
@@ -5262,18 +5235,24 @@
|
|
|
5262
5235
|
"first_sync_required": true
|
|
5263
5236
|
}
|
|
5264
5237
|
},
|
|
5265
|
-
"
|
|
5238
|
+
"AgentInstructionsResponse": {
|
|
5266
5239
|
"type": "object",
|
|
5267
5240
|
"required": [
|
|
5268
|
-
"
|
|
5241
|
+
"agent_instructions",
|
|
5242
|
+
"agent_instructions_version",
|
|
5269
5243
|
"docs",
|
|
5270
5244
|
"schedules",
|
|
5271
5245
|
"config"
|
|
5272
5246
|
],
|
|
5273
5247
|
"properties": {
|
|
5274
|
-
"
|
|
5248
|
+
"agent_instructions": {
|
|
5275
5249
|
"type": "string",
|
|
5276
|
-
"description": "
|
|
5250
|
+
"description": "Agent instructions.",
|
|
5251
|
+
"example": "example"
|
|
5252
|
+
},
|
|
5253
|
+
"agent_instructions_version": {
|
|
5254
|
+
"type": "string",
|
|
5255
|
+
"description": "Agent instructions version.",
|
|
5277
5256
|
"example": "example"
|
|
5278
5257
|
},
|
|
5279
5258
|
"docs": {
|
|
@@ -5311,9 +5290,10 @@
|
|
|
5311
5290
|
}
|
|
5312
5291
|
}
|
|
5313
5292
|
},
|
|
5314
|
-
"description": "Connected agent
|
|
5293
|
+
"description": "Connected agent instructions payload returned after successful bearer authentication.",
|
|
5315
5294
|
"example": {
|
|
5316
|
-
"
|
|
5295
|
+
"agent_instructions": "# Agent Instructions",
|
|
5296
|
+
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
5317
5297
|
"docs": [],
|
|
5318
5298
|
"schedules": [],
|
|
5319
5299
|
"config": {}
|
|
@@ -7508,9 +7488,10 @@
|
|
|
7508
7488
|
"type": "string",
|
|
7509
7489
|
"enum": [
|
|
7510
7490
|
"mention",
|
|
7511
|
-
"assignment"
|
|
7491
|
+
"assignment",
|
|
7492
|
+
"comment"
|
|
7512
7493
|
],
|
|
7513
|
-
"description": "Normalized notification type for API consumers. Allowed values: mention, assignment.",
|
|
7494
|
+
"description": "Normalized notification type for API consumers. Allowed values: mention, assignment, comment.",
|
|
7514
7495
|
"example": "mention"
|
|
7515
7496
|
},
|
|
7516
7497
|
"source_type": {
|
|
@@ -7692,7 +7673,7 @@
|
|
|
7692
7673
|
"example": "2026-02-22T17:21:00Z"
|
|
7693
7674
|
}
|
|
7694
7675
|
},
|
|
7695
|
-
"description": "Workspace notification record (mention or
|
|
7676
|
+
"description": "Workspace notification record (mention, assignment, or comment activity) for the authenticated principal."
|
|
7696
7677
|
},
|
|
7697
7678
|
"CalendarItemAssignee": {
|
|
7698
7679
|
"type": "object",
|
|
@@ -7759,62 +7740,6 @@
|
|
|
7759
7740
|
"created_at": "2026-02-22T17:21:00Z"
|
|
7760
7741
|
}
|
|
7761
7742
|
},
|
|
7762
|
-
"CalendarItemLink": {
|
|
7763
|
-
"type": "object",
|
|
7764
|
-
"required": [
|
|
7765
|
-
"id",
|
|
7766
|
-
"link_type",
|
|
7767
|
-
"link_id",
|
|
7768
|
-
"url",
|
|
7769
|
-
"title",
|
|
7770
|
-
"created_at"
|
|
7771
|
-
],
|
|
7772
|
-
"properties": {
|
|
7773
|
-
"id": {
|
|
7774
|
-
"type": "integer",
|
|
7775
|
-
"description": "Unique identifier for this record.",
|
|
7776
|
-
"example": 42
|
|
7777
|
-
},
|
|
7778
|
-
"link_type": {
|
|
7779
|
-
"type": "string",
|
|
7780
|
-
"description": "Link type.",
|
|
7781
|
-
"example": "example"
|
|
7782
|
-
},
|
|
7783
|
-
"link_id": {
|
|
7784
|
-
"type": "integer",
|
|
7785
|
-
"description": "Identifier for link.",
|
|
7786
|
-
"example": 42
|
|
7787
|
-
},
|
|
7788
|
-
"url": {
|
|
7789
|
-
"type": "string",
|
|
7790
|
-
"nullable": true,
|
|
7791
|
-
"description": "URL value for url.",
|
|
7792
|
-
"example": "https://agentmc.example.com/docs/incident-123"
|
|
7793
|
-
},
|
|
7794
|
-
"title": {
|
|
7795
|
-
"type": "string",
|
|
7796
|
-
"nullable": true,
|
|
7797
|
-
"description": "Human-readable title.",
|
|
7798
|
-
"example": "Example Title"
|
|
7799
|
-
},
|
|
7800
|
-
"created_at": {
|
|
7801
|
-
"type": "string",
|
|
7802
|
-
"format": "date-time",
|
|
7803
|
-
"nullable": true,
|
|
7804
|
-
"description": "ISO-8601 timestamp when this record was created.",
|
|
7805
|
-
"example": "2026-02-22T17:21:00Z"
|
|
7806
|
-
}
|
|
7807
|
-
},
|
|
7808
|
-
"description": "Calendar Item Link schema.",
|
|
7809
|
-
"example": {
|
|
7810
|
-
"id": 42,
|
|
7811
|
-
"link_type": "example",
|
|
7812
|
-
"link_id": 42,
|
|
7813
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
7814
|
-
"title": "Example Title",
|
|
7815
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
7816
|
-
}
|
|
7817
|
-
},
|
|
7818
7743
|
"CalendarItemComment": {
|
|
7819
7744
|
"type": "object",
|
|
7820
7745
|
"required": [
|
|
@@ -7888,7 +7813,6 @@
|
|
|
7888
7813
|
"created_by",
|
|
7889
7814
|
"updated_by",
|
|
7890
7815
|
"assignees",
|
|
7891
|
-
"links",
|
|
7892
7816
|
"comments_count",
|
|
7893
7817
|
"created_at",
|
|
7894
7818
|
"updated_at",
|
|
@@ -8026,23 +7950,6 @@
|
|
|
8026
7950
|
}
|
|
8027
7951
|
]
|
|
8028
7952
|
},
|
|
8029
|
-
"links": {
|
|
8030
|
-
"type": "array",
|
|
8031
|
-
"items": {
|
|
8032
|
-
"$ref": "#/components/schemas/CalendarItemLink"
|
|
8033
|
-
},
|
|
8034
|
-
"description": "Links.",
|
|
8035
|
-
"example": [
|
|
8036
|
-
{
|
|
8037
|
-
"id": 42,
|
|
8038
|
-
"link_type": "example",
|
|
8039
|
-
"link_id": 42,
|
|
8040
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
8041
|
-
"title": "Example Title",
|
|
8042
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
8043
|
-
}
|
|
8044
|
-
]
|
|
8045
|
-
},
|
|
8046
7953
|
"comments_count": {
|
|
8047
7954
|
"type": "integer",
|
|
8048
7955
|
"nullable": true,
|
|
@@ -8099,16 +8006,6 @@
|
|
|
8099
8006
|
"created_at": "2026-02-22T17:21:00Z"
|
|
8100
8007
|
}
|
|
8101
8008
|
],
|
|
8102
|
-
"links": [
|
|
8103
|
-
{
|
|
8104
|
-
"id": 42,
|
|
8105
|
-
"link_type": "example",
|
|
8106
|
-
"link_id": 42,
|
|
8107
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
8108
|
-
"title": "Example Title",
|
|
8109
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
8110
|
-
}
|
|
8111
|
-
],
|
|
8112
8009
|
"comments_count": 1,
|
|
8113
8010
|
"created_at": "2026-02-22T17:21:00Z",
|
|
8114
8011
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -8822,16 +8719,6 @@
|
|
|
8822
8719
|
"created_at": "2026-02-22T17:21:00Z"
|
|
8823
8720
|
}
|
|
8824
8721
|
],
|
|
8825
|
-
"links": [
|
|
8826
|
-
{
|
|
8827
|
-
"id": 42,
|
|
8828
|
-
"link_type": "example",
|
|
8829
|
-
"link_id": 42,
|
|
8830
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
8831
|
-
"title": "Example Title",
|
|
8832
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
8833
|
-
}
|
|
8834
|
-
],
|
|
8835
8722
|
"comments_count": 1,
|
|
8836
8723
|
"created_at": "2026-02-22T17:21:00Z",
|
|
8837
8724
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -8868,16 +8755,6 @@
|
|
|
8868
8755
|
"created_at": "2026-02-22T17:21:00Z"
|
|
8869
8756
|
}
|
|
8870
8757
|
],
|
|
8871
|
-
"links": [
|
|
8872
|
-
{
|
|
8873
|
-
"id": 42,
|
|
8874
|
-
"link_type": "example",
|
|
8875
|
-
"link_id": 42,
|
|
8876
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
8877
|
-
"title": "Example Title",
|
|
8878
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
8879
|
-
}
|
|
8880
|
-
],
|
|
8881
8758
|
"comments_count": 1,
|
|
8882
8759
|
"created_at": "2026-02-22T17:21:00Z",
|
|
8883
8760
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -9516,16 +9393,6 @@
|
|
|
9516
9393
|
"created_at": "2026-02-22T17:21:00Z"
|
|
9517
9394
|
}
|
|
9518
9395
|
],
|
|
9519
|
-
"links": [
|
|
9520
|
-
{
|
|
9521
|
-
"id": 42,
|
|
9522
|
-
"link_type": "example",
|
|
9523
|
-
"link_id": 42,
|
|
9524
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
9525
|
-
"title": "Example Title",
|
|
9526
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
9527
|
-
}
|
|
9528
|
-
],
|
|
9529
9396
|
"comments_count": 1,
|
|
9530
9397
|
"created_at": "2026-02-22T17:21:00Z",
|
|
9531
9398
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -9593,16 +9460,6 @@
|
|
|
9593
9460
|
"created_at": "2026-02-22T17:21:00Z"
|
|
9594
9461
|
}
|
|
9595
9462
|
],
|
|
9596
|
-
"links": [
|
|
9597
|
-
{
|
|
9598
|
-
"id": 42,
|
|
9599
|
-
"link_type": "example",
|
|
9600
|
-
"link_id": 42,
|
|
9601
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
9602
|
-
"title": "Example Title",
|
|
9603
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
9604
|
-
}
|
|
9605
|
-
],
|
|
9606
9463
|
"comments_count": 1,
|
|
9607
9464
|
"created_at": "2026-02-22T17:21:00Z",
|
|
9608
9465
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -9975,8 +9832,8 @@
|
|
|
9975
9832
|
"name": {
|
|
9976
9833
|
"type": "string",
|
|
9977
9834
|
"maxLength": 255,
|
|
9978
|
-
"description": "
|
|
9979
|
-
"example": "
|
|
9835
|
+
"description": "Runtime/client label fallback. AgentMC prefers identity name values from `identity.name` or `metadata.identity.name` when provided.",
|
|
9836
|
+
"example": "openclaw-main"
|
|
9980
9837
|
},
|
|
9981
9838
|
"host": {
|
|
9982
9839
|
"type": "string",
|
|
@@ -10004,6 +9861,72 @@
|
|
|
10004
9861
|
"realtime"
|
|
10005
9862
|
]
|
|
10006
9863
|
},
|
|
9864
|
+
"models": {
|
|
9865
|
+
"nullable": true,
|
|
9866
|
+
"oneOf": [
|
|
9867
|
+
{
|
|
9868
|
+
"type": "array",
|
|
9869
|
+
"items": {
|
|
9870
|
+
"oneOf": [
|
|
9871
|
+
{
|
|
9872
|
+
"type": "string",
|
|
9873
|
+
"description": "Full model ID in provider/model format.",
|
|
9874
|
+
"example": "openai/gpt-5-codex"
|
|
9875
|
+
},
|
|
9876
|
+
{
|
|
9877
|
+
"type": "object",
|
|
9878
|
+
"required": [
|
|
9879
|
+
"model_id"
|
|
9880
|
+
],
|
|
9881
|
+
"properties": {
|
|
9882
|
+
"model_id": {
|
|
9883
|
+
"type": "string",
|
|
9884
|
+
"description": "Full model ID in provider/model format.",
|
|
9885
|
+
"example": "openai/gpt-5-codex"
|
|
9886
|
+
},
|
|
9887
|
+
"provider": {
|
|
9888
|
+
"type": "string",
|
|
9889
|
+
"description": "Model provider slug.",
|
|
9890
|
+
"example": "openai"
|
|
9891
|
+
},
|
|
9892
|
+
"name": {
|
|
9893
|
+
"type": "string",
|
|
9894
|
+
"description": "Optional display name.",
|
|
9895
|
+
"example": "GPT-5 Codex"
|
|
9896
|
+
}
|
|
9897
|
+
}
|
|
9898
|
+
}
|
|
9899
|
+
]
|
|
9900
|
+
}
|
|
9901
|
+
},
|
|
9902
|
+
{
|
|
9903
|
+
"type": "object",
|
|
9904
|
+
"additionalProperties": true,
|
|
9905
|
+
"description": "Structured model snapshot (for example status/list output). AgentMC extracts model IDs recursively."
|
|
9906
|
+
}
|
|
9907
|
+
],
|
|
9908
|
+
"description": "Optional runtime LLM inventory. Send an array of model refs/objects or a structured runtime snapshot object.",
|
|
9909
|
+
"example": [
|
|
9910
|
+
{
|
|
9911
|
+
"model_id": "openai/gpt-5-codex",
|
|
9912
|
+
"provider": "openai"
|
|
9913
|
+
},
|
|
9914
|
+
{
|
|
9915
|
+
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
9916
|
+
"provider": "anthropic"
|
|
9917
|
+
}
|
|
9918
|
+
]
|
|
9919
|
+
},
|
|
9920
|
+
"identity": {
|
|
9921
|
+
"nullable": true,
|
|
9922
|
+
"description": "Optional full agent identity payload. AgentMC uses `identity.name` as the registered agent name when provided.",
|
|
9923
|
+
"example": {
|
|
9924
|
+
"name": "Jarvis",
|
|
9925
|
+
"creature": "robot",
|
|
9926
|
+
"vibe": "calm",
|
|
9927
|
+
"emoji": "🤖"
|
|
9928
|
+
}
|
|
9929
|
+
},
|
|
10007
9930
|
"metadata": {
|
|
10008
9931
|
"type": "object",
|
|
10009
9932
|
"additionalProperties": true,
|
|
@@ -10161,6 +10084,31 @@
|
|
|
10161
10084
|
"name": "Example Name",
|
|
10162
10085
|
"version": "example"
|
|
10163
10086
|
}
|
|
10087
|
+
},
|
|
10088
|
+
"identity": {
|
|
10089
|
+
"description": "Optional identity payload. When `identity.name` is present, AgentMC uses it as the registered agent name.",
|
|
10090
|
+
"oneOf": [
|
|
10091
|
+
{
|
|
10092
|
+
"type": "object",
|
|
10093
|
+
"additionalProperties": true,
|
|
10094
|
+
"properties": {
|
|
10095
|
+
"name": {
|
|
10096
|
+
"type": "string",
|
|
10097
|
+
"maxLength": 255,
|
|
10098
|
+
"example": "Jarvis",
|
|
10099
|
+
"description": "Human-readable name."
|
|
10100
|
+
}
|
|
10101
|
+
}
|
|
10102
|
+
},
|
|
10103
|
+
{
|
|
10104
|
+
"type": "string",
|
|
10105
|
+
"description": "Raw IDENTITY.md content. AgentMC will parse a `Name:` line when present.",
|
|
10106
|
+
"example": "Name: Jarvis"
|
|
10107
|
+
}
|
|
10108
|
+
],
|
|
10109
|
+
"example": {
|
|
10110
|
+
"name": "Jarvis"
|
|
10111
|
+
}
|
|
10164
10112
|
}
|
|
10165
10113
|
},
|
|
10166
10114
|
"description": "Required host telemetry snapshot for registration. Mirrors heartbeat host metadata and is saved as host metadata.",
|
|
@@ -10185,6 +10133,11 @@
|
|
|
10185
10133
|
"runtime": {
|
|
10186
10134
|
"name": "codex",
|
|
10187
10135
|
"version": "2026.02.1"
|
|
10136
|
+
},
|
|
10137
|
+
"identity": {
|
|
10138
|
+
"name": "Jarvis",
|
|
10139
|
+
"creature": "robot",
|
|
10140
|
+
"vibe": "calm"
|
|
10188
10141
|
}
|
|
10189
10142
|
}
|
|
10190
10143
|
}
|
|
@@ -10198,7 +10151,7 @@
|
|
|
10198
10151
|
],
|
|
10199
10152
|
"description": "One-time agent registration payload. Resolve this schema from OpenAPI at runtime instead of hardcoding fields.",
|
|
10200
10153
|
"example": {
|
|
10201
|
-
"name": "
|
|
10154
|
+
"name": "openclaw-main",
|
|
10202
10155
|
"host": "ip-10-0-3-42",
|
|
10203
10156
|
"runtime_version": "2026.02.1",
|
|
10204
10157
|
"capabilities": [
|
|
@@ -10206,6 +10159,22 @@
|
|
|
10206
10159
|
"calendar",
|
|
10207
10160
|
"realtime"
|
|
10208
10161
|
],
|
|
10162
|
+
"models": [
|
|
10163
|
+
{
|
|
10164
|
+
"model_id": "openai/gpt-5-codex",
|
|
10165
|
+
"provider": "openai"
|
|
10166
|
+
},
|
|
10167
|
+
{
|
|
10168
|
+
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
10169
|
+
"provider": "anthropic"
|
|
10170
|
+
}
|
|
10171
|
+
],
|
|
10172
|
+
"identity": {
|
|
10173
|
+
"name": "Jarvis",
|
|
10174
|
+
"creature": "robot",
|
|
10175
|
+
"vibe": "calm",
|
|
10176
|
+
"emoji": "🤖"
|
|
10177
|
+
},
|
|
10209
10178
|
"metadata": {
|
|
10210
10179
|
"hostname": "worker-01",
|
|
10211
10180
|
"ip": "10.0.2.15",
|
|
@@ -10227,6 +10196,11 @@
|
|
|
10227
10196
|
"runtime": {
|
|
10228
10197
|
"name": "codex",
|
|
10229
10198
|
"version": "2026.02.1"
|
|
10199
|
+
},
|
|
10200
|
+
"identity": {
|
|
10201
|
+
"name": "Jarvis",
|
|
10202
|
+
"creature": "robot",
|
|
10203
|
+
"vibe": "calm"
|
|
10230
10204
|
}
|
|
10231
10205
|
}
|
|
10232
10206
|
}
|
|
@@ -10546,61 +10520,75 @@
|
|
|
10546
10520
|
"models": {
|
|
10547
10521
|
"nullable": true,
|
|
10548
10522
|
"oneOf": [
|
|
10549
|
-
{
|
|
10550
|
-
"type": "object",
|
|
10551
|
-
"additionalProperties": true
|
|
10552
|
-
},
|
|
10553
10523
|
{
|
|
10554
10524
|
"type": "array",
|
|
10555
10525
|
"items": {
|
|
10556
|
-
"
|
|
10557
|
-
|
|
10558
|
-
}
|
|
10559
|
-
}
|
|
10560
|
-
],
|
|
10561
|
-
"description": "Runtime LLM model inventory. Report full model IDs (provider/model), for example `openai/gpt-5-codex`. Do not send runtime names like `openclaw` or provider-only labels.",
|
|
10562
|
-
"items": {
|
|
10563
|
-
"oneOf": [
|
|
10564
|
-
{
|
|
10565
|
-
"type": "string",
|
|
10566
|
-
"description": "Full model ID in provider/model format.",
|
|
10567
|
-
"example": "openai/gpt-5-codex"
|
|
10568
|
-
},
|
|
10569
|
-
{
|
|
10570
|
-
"type": "object",
|
|
10571
|
-
"required": [
|
|
10572
|
-
"model_id"
|
|
10573
|
-
],
|
|
10574
|
-
"properties": {
|
|
10575
|
-
"model_id": {
|
|
10526
|
+
"oneOf": [
|
|
10527
|
+
{
|
|
10576
10528
|
"type": "string",
|
|
10577
10529
|
"description": "Full model ID in provider/model format.",
|
|
10578
10530
|
"example": "openai/gpt-5-codex"
|
|
10579
10531
|
},
|
|
10580
|
-
|
|
10581
|
-
"type": "
|
|
10582
|
-
"
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10532
|
+
{
|
|
10533
|
+
"type": "object",
|
|
10534
|
+
"required": [
|
|
10535
|
+
"model_id"
|
|
10536
|
+
],
|
|
10537
|
+
"properties": {
|
|
10538
|
+
"model_id": {
|
|
10539
|
+
"type": "string",
|
|
10540
|
+
"description": "Full model ID in provider/model format.",
|
|
10541
|
+
"example": "openai/gpt-5-codex"
|
|
10542
|
+
},
|
|
10543
|
+
"provider": {
|
|
10544
|
+
"type": "string",
|
|
10545
|
+
"description": "Model provider slug.",
|
|
10546
|
+
"example": "openai"
|
|
10547
|
+
},
|
|
10548
|
+
"name": {
|
|
10549
|
+
"type": "string",
|
|
10550
|
+
"description": "Optional display name for UI; do not use this as canonical model identifier.",
|
|
10551
|
+
"example": "GPT-5 Codex"
|
|
10552
|
+
}
|
|
10553
|
+
}
|
|
10589
10554
|
}
|
|
10590
|
-
|
|
10555
|
+
]
|
|
10591
10556
|
}
|
|
10592
|
-
]
|
|
10593
|
-
},
|
|
10594
|
-
"example": [
|
|
10595
|
-
{
|
|
10596
|
-
"model_id": "openai/gpt-5-codex",
|
|
10597
|
-
"provider": "openai"
|
|
10598
10557
|
},
|
|
10599
10558
|
{
|
|
10600
|
-
"
|
|
10601
|
-
"
|
|
10559
|
+
"type": "object",
|
|
10560
|
+
"additionalProperties": true,
|
|
10561
|
+
"description": "Structured model snapshot (for example status/list output). AgentMC extracts model IDs recursively."
|
|
10602
10562
|
}
|
|
10603
|
-
]
|
|
10563
|
+
],
|
|
10564
|
+
"description": "Runtime LLM inventory. Send an array of model refs/objects or a structured runtime snapshot object. Prefer full provider/model IDs and avoid provider-only labels.",
|
|
10565
|
+
"example": {
|
|
10566
|
+
"resolved": {
|
|
10567
|
+
"default": "openai/gpt-5-codex",
|
|
10568
|
+
"fallbacks": [
|
|
10569
|
+
"anthropic/claude-sonnet-4-20250514"
|
|
10570
|
+
]
|
|
10571
|
+
},
|
|
10572
|
+
"providers": {
|
|
10573
|
+
"openai": [
|
|
10574
|
+
"gpt-5-codex",
|
|
10575
|
+
"gpt-4.1"
|
|
10576
|
+
],
|
|
10577
|
+
"anthropic": [
|
|
10578
|
+
"claude-sonnet-4-20250514"
|
|
10579
|
+
]
|
|
10580
|
+
}
|
|
10581
|
+
}
|
|
10582
|
+
},
|
|
10583
|
+
"identity": {
|
|
10584
|
+
"nullable": true,
|
|
10585
|
+
"description": "Optional full agent identity payload. AgentMC stores this under `agent.meta.identity`.",
|
|
10586
|
+
"example": {
|
|
10587
|
+
"name": "Jarvis",
|
|
10588
|
+
"creature": "robot",
|
|
10589
|
+
"vibe": "calm",
|
|
10590
|
+
"emoji": "🤖"
|
|
10591
|
+
}
|
|
10604
10592
|
}
|
|
10605
10593
|
},
|
|
10606
10594
|
"description": "Optional runtime agent profile metadata.",
|
|
@@ -10644,12 +10632,28 @@
|
|
|
10644
10632
|
"id": 42,
|
|
10645
10633
|
"name": "codex-runtime-prod",
|
|
10646
10634
|
"type": "generic",
|
|
10647
|
-
"
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10635
|
+
"identity": {
|
|
10636
|
+
"name": "Jarvis",
|
|
10637
|
+
"creature": "robot",
|
|
10638
|
+
"vibe": "calm"
|
|
10639
|
+
},
|
|
10640
|
+
"models": {
|
|
10641
|
+
"resolved": {
|
|
10642
|
+
"default": "openai/gpt-5-codex",
|
|
10643
|
+
"fallbacks": [
|
|
10644
|
+
"anthropic/claude-sonnet-4-20250514"
|
|
10645
|
+
]
|
|
10646
|
+
},
|
|
10647
|
+
"providers": {
|
|
10648
|
+
"openai": [
|
|
10649
|
+
"gpt-5-codex",
|
|
10650
|
+
"gpt-4.1"
|
|
10651
|
+
],
|
|
10652
|
+
"anthropic": [
|
|
10653
|
+
"claude-sonnet-4-20250514"
|
|
10654
|
+
]
|
|
10651
10655
|
}
|
|
10652
|
-
|
|
10656
|
+
}
|
|
10653
10657
|
}
|
|
10654
10658
|
}
|
|
10655
10659
|
},
|
|
@@ -11829,7 +11833,7 @@
|
|
|
11829
11833
|
"$ref": "#/components/schemas/RegisterAgentApiRequest"
|
|
11830
11834
|
},
|
|
11831
11835
|
"example": {
|
|
11832
|
-
"name": "
|
|
11836
|
+
"name": "openclaw-main",
|
|
11833
11837
|
"host": "ip-10-0-3-42",
|
|
11834
11838
|
"runtime_version": "2026.02.1",
|
|
11835
11839
|
"capabilities": [
|
|
@@ -11837,6 +11841,21 @@
|
|
|
11837
11841
|
"calendar",
|
|
11838
11842
|
"realtime"
|
|
11839
11843
|
],
|
|
11844
|
+
"models": [
|
|
11845
|
+
{
|
|
11846
|
+
"model_id": "openai/gpt-5-codex",
|
|
11847
|
+
"provider": "openai"
|
|
11848
|
+
},
|
|
11849
|
+
{
|
|
11850
|
+
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
11851
|
+
"provider": "anthropic"
|
|
11852
|
+
}
|
|
11853
|
+
],
|
|
11854
|
+
"identity": {
|
|
11855
|
+
"name": "Jarvis",
|
|
11856
|
+
"creature": "robot",
|
|
11857
|
+
"vibe": "calm"
|
|
11858
|
+
},
|
|
11840
11859
|
"metadata": {
|
|
11841
11860
|
"hostname": "worker-01",
|
|
11842
11861
|
"ip": "10.0.2.15",
|
|
@@ -11858,6 +11877,9 @@
|
|
|
11858
11877
|
"runtime": {
|
|
11859
11878
|
"name": "codex",
|
|
11860
11879
|
"version": "2026.02.1"
|
|
11880
|
+
},
|
|
11881
|
+
"identity": {
|
|
11882
|
+
"name": "Jarvis"
|
|
11861
11883
|
}
|
|
11862
11884
|
}
|
|
11863
11885
|
}
|
|
@@ -11907,16 +11929,28 @@
|
|
|
11907
11929
|
"agent": {
|
|
11908
11930
|
"id": 42,
|
|
11909
11931
|
"name": "codex-runtime-prod",
|
|
11910
|
-
"
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11932
|
+
"identity": {
|
|
11933
|
+
"name": "Jarvis",
|
|
11934
|
+
"creature": "robot",
|
|
11935
|
+
"vibe": "calm"
|
|
11936
|
+
},
|
|
11937
|
+
"models": {
|
|
11938
|
+
"resolved": {
|
|
11939
|
+
"default": "openai/gpt-5-codex",
|
|
11940
|
+
"fallbacks": [
|
|
11941
|
+
"anthropic/claude-sonnet-4-20250514"
|
|
11942
|
+
]
|
|
11914
11943
|
},
|
|
11915
|
-
{
|
|
11916
|
-
"
|
|
11917
|
-
|
|
11944
|
+
"providers": {
|
|
11945
|
+
"openai": [
|
|
11946
|
+
"gpt-5-codex",
|
|
11947
|
+
"gpt-4.1"
|
|
11948
|
+
],
|
|
11949
|
+
"anthropic": [
|
|
11950
|
+
"claude-sonnet-4-20250514"
|
|
11951
|
+
]
|
|
11918
11952
|
}
|
|
11919
|
-
|
|
11953
|
+
}
|
|
11920
11954
|
}
|
|
11921
11955
|
}
|
|
11922
11956
|
}
|
|
@@ -12233,8 +12267,8 @@
|
|
|
12233
12267
|
"example": {
|
|
12234
12268
|
"agent_id": 42,
|
|
12235
12269
|
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
12236
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
12237
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
12270
|
+
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
12271
|
+
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
12238
12272
|
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
12239
12273
|
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
12240
12274
|
"workspace": {
|
|
@@ -12248,15 +12282,16 @@
|
|
|
12248
12282
|
}
|
|
12249
12283
|
}
|
|
12250
12284
|
},
|
|
12251
|
-
"
|
|
12285
|
+
"AgentInstructionsResponse": {
|
|
12252
12286
|
"description": "Agent instructions returned.",
|
|
12253
12287
|
"content": {
|
|
12254
12288
|
"application/json": {
|
|
12255
12289
|
"schema": {
|
|
12256
|
-
"$ref": "#/components/schemas/
|
|
12290
|
+
"$ref": "#/components/schemas/AgentInstructionsResponse"
|
|
12257
12291
|
},
|
|
12258
12292
|
"example": {
|
|
12259
|
-
"
|
|
12293
|
+
"agent_instructions": "# Agent Instructions",
|
|
12294
|
+
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
12260
12295
|
"docs": [],
|
|
12261
12296
|
"schedules": [],
|
|
12262
12297
|
"config": {}
|