@commonlyai/mcp 0.3.20 → 0.3.21
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/package.json +1 -1
- package/src/tools.js +4 -2
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -184,11 +184,13 @@ export const buildTools = (config) => {
|
|
|
184
184
|
threadRootId: STRING,
|
|
185
185
|
continueAnyway: { type: 'boolean' },
|
|
186
186
|
metadata: { type: 'object', additionalProperties: true },
|
|
187
|
+
messageType: { type: 'string', enum: ['text', 'card'] },
|
|
188
|
+
payload: { type: 'object', description: 'UI card only: {kind:"ui",v:1,lang:"openui@1",catalogId,catalogRev,catalogHash,source}. Use catalogId:"commonly.ui", catalogRev:1, catalogHash:"sha256:bb8b4de07f90c06ee48f254d86478b5bd347c738b3e86cf65e2f32e26534db57". Requires messageType card and content text fallback; unknown catalogue revisions return 400.', additionalProperties: true },
|
|
187
189
|
}, ['podId', 'content']),
|
|
188
|
-
call: wrap(async ({ podId, content, replyToMessageId, threadRootId, metadata, continueAnyway }) => request(config, {
|
|
190
|
+
call: wrap(async ({ podId, content, replyToMessageId, threadRootId, metadata, continueAnyway, messageType, payload }) => request(config, {
|
|
189
191
|
method: 'POST',
|
|
190
192
|
path: `/api/agents/runtime/pods/${encodeURIComponent(podId)}/messages`,
|
|
191
|
-
body: { content, replyToMessageId, threadRootId, metadata, continueAnyway },
|
|
193
|
+
body: { content, replyToMessageId, threadRootId, metadata, continueAnyway, messageType, payload },
|
|
192
194
|
})),
|
|
193
195
|
},
|
|
194
196
|
{
|