get_subagent_results
Retrieve completed task results from specialized AI subagents on the MCP Goose Subagents Server using a session ID to track and access delegated outcomes.
Instructions
Get results from completed subagents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID to get results for |
Implementation Reference
- src/index.js:390-414 (handler)The handler function that retrieves subagent session results, including output, status, timings, and any errors from the activeSubagents map.async getSubagentResults(args) { const { session_id } = args; if (!this.activeSubagents.has(session_id)) { throw new McpError( ErrorCode.InvalidRequest, `Session ${session_id} not found` ); } const session = this.activeSubagents.get(session_id); return { content: [ { type: 'text', text: `Subagent Session Results\n\nSession ID: ${session_id}\nTask: ${session.task}\nStatus: ${session.status}\nExecution Mode: ${session.execution_mode}\nAgents: ${session.agents.length}\n\n` + `Start Time: ${session.startTime}\n` + `End Time: ${session.endTime || 'Still running'}\n\n` + `Output:\n${session.output || 'No output yet'}\n\n` + `${session.error ? `Errors:\n${session.error}` : ''}` } ] }; }
- src/index.js:129-138 (schema)Input schema defining the required 'session_id' parameter for the tool.inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'Session ID to get results for' } }, required: ['session_id'] }
- src/index.js:155-156 (registration)Registration in the tool dispatch switch statement that routes calls to the handler.case 'get_subagent_results': return await this.getSubagentResults(args);
- src/index.js:126-139 (registration)Tool metadata registration in the ListTools response, including name, description, and schema.{ name: 'get_subagent_results', description: 'Get results from completed subagents', inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'Session ID to get results for' } }, required: ['session_id'] } }