opera-devtools-mcp 0.5.0 → 0.5.1
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.
|
@@ -950,6 +950,12 @@ export const commands = {
|
|
|
950
950
|
description: 'Model ID to use for the chat. Omit to use the browser default. Use opera_list_models to discover available IDs.',
|
|
951
951
|
required: false,
|
|
952
952
|
},
|
|
953
|
+
conversationId: {
|
|
954
|
+
name: 'conversationId',
|
|
955
|
+
type: 'string',
|
|
956
|
+
description: 'Conversation ID to continue an existing conversation. Omit to start a new conversation.',
|
|
957
|
+
required: false,
|
|
958
|
+
},
|
|
953
959
|
},
|
|
954
960
|
},
|
|
955
961
|
opera_connect_mcp_server: {
|
|
@@ -71,6 +71,10 @@ export const operaChat = definePageTool({
|
|
|
71
71
|
.string()
|
|
72
72
|
.optional()
|
|
73
73
|
.describe('Model ID to use for the chat. Omit to use the browser default. Use opera_list_models to discover available IDs.'),
|
|
74
|
+
conversationId: zod
|
|
75
|
+
.string()
|
|
76
|
+
.optional()
|
|
77
|
+
.describe('Conversation ID to continue an existing conversation. Omit to start a new conversation.'),
|
|
74
78
|
},
|
|
75
79
|
handler: async (request, response) => {
|
|
76
80
|
// puppeteer's _client() is internal; cast to the shape getCDPSession needs
|
|
@@ -83,6 +87,9 @@ export const operaChat = definePageTool({
|
|
|
83
87
|
if (request.params.model !== undefined) {
|
|
84
88
|
payload['model'] = request.params.model;
|
|
85
89
|
}
|
|
90
|
+
if (request.params.conversationId !== undefined) {
|
|
91
|
+
payload['conversationId'] = request.params.conversationId;
|
|
92
|
+
}
|
|
86
93
|
const result = await dispatchAction(session, payload);
|
|
87
94
|
response.appendResponseLine(result);
|
|
88
95
|
}
|