owner-clone-ai-mcp 1.29.2 → 1.30.0
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 +24 -6
- package/package.json +1 -1
package/domains/knowledge.js
CHANGED
|
@@ -51,27 +51,42 @@ const tools = [
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
name: 'create_knowledge',
|
|
54
|
-
description:
|
|
54
|
+
description: `Owner Clone AIにナレッジを新規作成します。【書き込み権限付きキーが必要】作成後、自動的にベクトル化されセマンティック検索に対応します。
|
|
55
|
+
|
|
56
|
+
text_content(自由テキスト)か、content(カテゴリ別の構造化オブジェクト)のどちらかを渡してください。
|
|
57
|
+
content を渡すと各入力項目が正しく構造化保存され、本文テキストは自動生成されます(UIフォームと同じ扱い)。
|
|
58
|
+
|
|
59
|
+
■ content のカテゴリ別フィールド(カテゴリに合わせて設定):
|
|
60
|
+
persona: persona_name(お名前) / age_gender(年齢) / gender(性別:男性|女性|その他) / job / concerns(緊急性のある悩みTOP3) / level(初級者|中級者|上級者) / level_reason / special_words / past_failures / wants(具体的ゴール) / info_source / purchase_behavior / why_instant_sell
|
|
61
|
+
profile: company_name / founded(設立年・事業開始年) / business / achievements / media / expertise(専門性) / representative
|
|
62
|
+
testimonial: publish_consent(掲載可否:全て掲載可|名前を伏せて掲載可|掲載不可) / service_name / customer_name / industry / self_intro / before_reason / results / how_achieved / beyond_expect / surrounding / recommend_for
|
|
63
|
+
tone: base_style / expressions / avoid / length_style / layout("mobile"=スマホ対応|"pc"=PC最適化) / sample
|
|
64
|
+
product: product_name / category(商品ジャンル) / price / urgent_problems / why_created / for_whom / services(★配列)
|
|
65
|
+
offer: offer_name / offer_type(メルマガ・公式LINEの登録誘導|資料・サンプル請求|個別相談・セミナー開催|チャレンジ企画|ウェビナー|その他) / price / duration / urgent_problems / why_created / for_whom / bonuses / guarantee / services(★配列) / objections / cta
|
|
66
|
+
other / note_manual / note_research / note_hint / note_article / note_meeting: body
|
|
67
|
+
■ product/offer の services(繰り返し複合・オブジェクト配列):
|
|
68
|
+
services: [{ name:"サービス名", value:"いくらの価値があるか", result_1m:"1ヶ月で見込める結果", result_3m:"3ヶ月で見込める結果", result_6m:"6ヶ月で見込める結果", advantages:"競合より優れている3つの理由" }, ...複数可]`,
|
|
55
69
|
annotations: { destructiveHint: false, idempotentHint: false },
|
|
56
70
|
inputSchema: {
|
|
57
71
|
type: 'object',
|
|
58
72
|
properties: {
|
|
59
73
|
title: { type: 'string', description: 'ナレッジのタイトル' },
|
|
60
|
-
text_content: { type: 'string', description: '
|
|
74
|
+
text_content: { type: 'string', description: 'ナレッジの本文テキスト(content を渡す場合は不要)' },
|
|
75
|
+
content: { type: 'object', description: 'カテゴリ別の構造化オブジェクト(上記参照)。渡すと本文テキストは自動生成される。product/offer の services は配列' },
|
|
61
76
|
category: {
|
|
62
77
|
type: 'string',
|
|
63
|
-
description: '
|
|
64
|
-
enum: ['product', 'profile', 'testimonial', 'persona', 'tone', 'other'],
|
|
78
|
+
description: 'カテゴリ',
|
|
79
|
+
enum: ['offer', 'product', 'profile', 'testimonial', 'persona', 'tone', 'other', 'note_manual', 'note_research', 'note_hint', 'note_article', 'note_meeting'],
|
|
65
80
|
},
|
|
66
81
|
folder_id: { type: 'string', description: 'フォルダID(省略可)' },
|
|
67
82
|
tags: { type: 'array', items: { type: 'string' }, description: 'タグの配列(例: ["マーケティング", "集客"])省略可。省略時はタグなしで登録。' },
|
|
68
83
|
},
|
|
69
|
-
required: ['title'
|
|
84
|
+
required: ['title'],
|
|
70
85
|
},
|
|
71
86
|
},
|
|
72
87
|
{
|
|
73
88
|
name: 'update_knowledge',
|
|
74
|
-
description: '既存のナレッジを更新します。【書き込み権限付きキーが必要】本文を変更した場合は自動的に再ベクトル化されます。folder_id でフォルダ移動も可能(null で未分類に移動)。',
|
|
89
|
+
description: '既存のナレッジを更新します。【書き込み権限付きキーが必要】本文を変更した場合は自動的に再ベクトル化されます。folder_id でフォルダ移動も可能(null で未分類に移動)。content(カテゴリ別構造化オブジェクト)を渡すと構造化保存+本文自動生成(フィールド仕様は create_knowledge 参照)。',
|
|
75
90
|
annotations: { destructiveHint: false, idempotentHint: true },
|
|
76
91
|
inputSchema: {
|
|
77
92
|
type: 'object',
|
|
@@ -79,6 +94,7 @@ const tools = [
|
|
|
79
94
|
id: { type: 'string', description: '更新するナレッジのID' },
|
|
80
95
|
title: { type: 'string', description: '新しいタイトル(省略時は変更なし)' },
|
|
81
96
|
text_content: { type: 'string', description: '新しい本文(省略時は変更なし)' },
|
|
97
|
+
content: { type: 'object', description: 'カテゴリ別の構造化オブジェクト(create_knowledge参照)。渡すと本文を自動再生成。product/offer の services は配列' },
|
|
82
98
|
category: { type: 'string', description: '新しいカテゴリ(省略時は変更なし)' },
|
|
83
99
|
folder_id: { type: 'string', description: '移動先フォルダID(null または省略で変更なし、空文字列で未分類へ移動)' },
|
|
84
100
|
tags: { type: 'array', items: { type: 'string' }, description: 'タグの配列(省略時は変更なし、空配列[]でタグを全削除)' },
|
|
@@ -311,6 +327,7 @@ const handlers = {
|
|
|
311
327
|
body: JSON.stringify({
|
|
312
328
|
title: args.title, text_content: args.text_content,
|
|
313
329
|
category: args.category || 'other', folder_id: args.folder_id,
|
|
330
|
+
...(args.content !== undefined ? { content: args.content } : {}),
|
|
314
331
|
...(args.tags !== undefined ? { tags: args.tags } : {}),
|
|
315
332
|
}),
|
|
316
333
|
});
|
|
@@ -322,6 +339,7 @@ const handlers = {
|
|
|
322
339
|
const body = {};
|
|
323
340
|
if (args.title) body.title = args.title;
|
|
324
341
|
if (args.text_content) body.text_content = args.text_content;
|
|
342
|
+
if (args.content !== undefined) body.content = args.content;
|
|
325
343
|
if (args.category) body.category = args.category;
|
|
326
344
|
if (args.folder_id !== undefined) body.folder_id = args.folder_id || null;
|
|
327
345
|
if (args.tags !== undefined) body.tags = args.tags;
|