SpaceToolDefinitions.js•9.04 kB
// src/server/tools/definitions/SpaceToolDefinitions.js
/**
* スペース関連のツール定義
*/
export const spaceToolDefinitions = [
{
name: 'get_space',
description: 'スペースの一般情報を取得します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
}
},
required: ['space_id']
},
annotations: {
readOnly: true,
safe: true,
category: 'space',
requiresConfirmation: false,
longRunning: false,
impact: 'low'
}
},
{
name: 'update_space',
description: 'スペースの設定を更新します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
},
name: {
type: 'string',
description: 'スペースの新しい名前'
},
isPrivate: {
type: 'boolean',
description: 'プライベート設定'
},
fixedMember: {
type: 'boolean',
description: 'メンバー固定設定'
},
useMultiThread: {
type: 'boolean',
description: 'マルチスレッド設定'
}
},
required: ['space_id']
},
annotations: {
readOnly: false,
safe: false,
category: 'space',
requiresConfirmation: true,
longRunning: false,
impact: 'medium'
}
},
{
name: 'update_space_body',
description: 'スペースの本文を更新します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
},
body: {
type: 'string',
description: 'スペースの本文(HTML形式)'
}
},
required: ['space_id', 'body']
},
annotations: {
readOnly: false,
safe: true,
category: 'space',
requiresConfirmation: true,
longRunning: false,
impact: 'medium'
}
},
{
name: 'get_space_members',
description: 'スペースメンバーのリストを取得します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
}
},
required: ['space_id']
},
annotations: {
readOnly: true,
safe: true,
category: 'space',
requiresConfirmation: false,
longRunning: false,
impact: 'low'
}
},
{
name: 'update_space_members',
description: 'スペースメンバーを更新します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
},
members: {
type: 'array',
items: {
type: 'object',
properties: {
entity: {
type: 'object',
properties: {
type: {
type: 'string',
enum: ['USER', 'GROUP', 'ORGANIZATION']
},
code: {
type: 'string'
}
},
required: ['type', 'code']
},
isAdmin: {
type: 'boolean'
},
includeSubs: {
type: 'boolean'
}
},
required: ['entity']
}
}
},
required: ['space_id', 'members']
},
annotations: {
readOnly: false,
safe: false,
category: 'space',
requiresConfirmation: true,
longRunning: false,
impact: 'high'
}
},
{
name: 'add_thread',
description: 'スペースにスレッドを追加します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
},
name: {
type: 'string',
description: 'スレッド名'
}
},
required: ['space_id', 'name']
},
annotations: {
readOnly: false,
safe: true,
category: 'space',
requiresConfirmation: false,
longRunning: false,
impact: 'medium'
}
},
{
name: 'update_thread',
description: 'スレッドを更新します',
inputSchema: {
type: 'object',
properties: {
thread_id: {
type: 'string',
description: 'スレッドID'
},
name: {
type: 'string',
description: 'スレッドの新しい名前'
},
body: {
type: 'string',
description: 'スレッドの本文(HTML形式)'
}
},
required: ['thread_id']
},
annotations: {
readOnly: false,
safe: true,
category: 'space',
requiresConfirmation: true,
longRunning: false,
impact: 'medium'
}
},
{
name: 'add_thread_comment',
description: 'スレッドにコメントを追加します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
},
thread_id: {
type: 'string',
description: 'スレッドID'
},
text: {
type: 'string',
description: 'コメント本文'
},
mentions: {
type: 'array',
items: {
type: 'object',
properties: {
code: {
type: 'string'
},
type: {
type: 'string',
enum: ['USER', 'GROUP', 'ORGANIZATION']
}
},
required: ['code', 'type']
}
}
},
required: ['space_id', 'thread_id', 'text']
},
annotations: {
readOnly: false,
safe: true,
category: 'space',
requiresConfirmation: false,
longRunning: false,
impact: 'low'
}
},
{
name: 'update_space_guests',
description: 'スペースのゲストメンバーを更新します',
inputSchema: {
type: 'object',
properties: {
space_id: {
type: 'string',
description: 'スペースID'
},
guests: {
type: 'array',
items: {
type: 'string',
description: 'ゲストユーザーのメールアドレス'
}
}
},
required: ['space_id', 'guests']
},
annotations: {
readOnly: false,
safe: false,
category: 'space',
requiresConfirmation: true,
longRunning: false,
impact: 'high'
}
}
];