aida_log_bug
Log bugs discovered during development or testing. Record bug details including title, severity level, and discovery source to track issues systematically.
Instructions
当你在开发或测试中发现 bug 时调用。记录 bug 信息。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Bug 描述 | |
| severity | No | 严重程度:critical/high/medium/low,默认 medium | |
| source | No | 发现来源:self-review/user-feedback/testing,默认 self-review |
Implementation Reference
- src/mcp/server.ts:346-369 (handler)The handler function 'handleLogBug' logic which registers a bug in 'run.json'.
function handleLogBug(args: any): any { const severity = args.severity || 'medium'; const source = args.source || 'self-review'; const { path, data } = ensureRunJson(); const id = nextId(data.bugs, 'BUG'); const bug: BugItem = { bugId: id, title: args.title, severity: severity as BugItem['severity'], source: source as BugItem['source'], status: 'open', files: [], fix: null, taskId: data.context.currentTaskId || null, reportedAt: now(), fixedAt: null, }; data.bugs.push(bug); data.summary.bugCount = data.bugs.length; addEvent(data, 'bug_created', { bugId: id }); addTimeline(data, 'bug', `${id}: ${args.title}`); save(path, data); return { success: true, bugId: id, message: `${id} 已记录: ${args.title} [${severity}]` }; } - src/mcp/server.ts:162-173 (schema)The tool definition for 'aida_log_bug' including input schema.
name: 'aida_log_bug', description: '当你在开发或测试中发现 bug 时调用。记录 bug 信息。', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Bug 描述' }, severity: { type: 'string', enum: [...SEVERITY_VALUES], description: '严重程度:critical/high/medium/low,默认 medium' }, source: { type: 'string', enum: [...BUG_SOURCE_VALUES], description: '发现来源:self-review/user-feedback/testing,默认 self-review' }, }, required: ['title'], }, },