owner-clone-ai-mcp 2.1.7 → 2.1.8
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/domains/knowledge.js +14 -0
- package/package.json +1 -1
package/domains/knowledge.js
CHANGED
|
@@ -397,6 +397,15 @@ text_content(自由テキスト)か、content(カテゴリ別の構造化
|
|
|
397
397
|
},
|
|
398
398
|
},
|
|
399
399
|
},
|
|
400
|
+
{
|
|
401
|
+
name: 'duplicate_knowledge',
|
|
402
|
+
description: `ナレッジを複製します(画面の「複製」ボタンと同じ動作)。本文・カテゴリ・タグ・フォルダ・装飾設定をそのままコピーし、タイトルは既定で「元タイトル(複製)」。new_title で複製後のタイトル、folder_id で保存先フォルダを指定できます。v2作成など「原本を残して改稿する」前のベース作りに便利です。`,
|
|
403
|
+
inputSchema: { type: 'object', properties: {
|
|
404
|
+
knowledge_id: { type: 'string', description: '複製元ナレッジのID(必須)' },
|
|
405
|
+
new_title: { type: 'string', description: '複製後のタイトル(省略時「元タイトル(複製)」)' },
|
|
406
|
+
folder_id: { type: 'string', description: '保存先フォルダID(省略時は元と同じフォルダ)' },
|
|
407
|
+
}, required: ['knowledge_id'] },
|
|
408
|
+
},
|
|
400
409
|
{
|
|
401
410
|
name: 'list_knowledge_revision_notes',
|
|
402
411
|
description: `ナレッジに付けられた修正指示(人間が画面で入れた指摘)の一覧を取得します。
|
|
@@ -417,6 +426,11 @@ quote=該当箇所の引用・para_index=段落位置・instruction=指示本文
|
|
|
417
426
|
];
|
|
418
427
|
|
|
419
428
|
const handlers = {
|
|
429
|
+
async duplicate_knowledge(args) {
|
|
430
|
+
const d = await callApi(`/knowledge/${args.knowledge_id}/duplicate`,
|
|
431
|
+
{ method: 'POST', body: JSON.stringify({ new_title: args.new_title, folder_id: args.folder_id }) });
|
|
432
|
+
return `✅ 「${d.title}」として複製しました(id: ${d.id})`;
|
|
433
|
+
},
|
|
420
434
|
async list_knowledge_revision_notes(args) {
|
|
421
435
|
const d = await callApi(`/knowledge/${args.knowledge_id}/revision-notes`);
|
|
422
436
|
const lines = (d.notes || []).map((n, i) =>
|