goalstory_read_current_focus
Identify the user’s current goal and step to maintain context in discussions and story creation, enhancing focus and progress tracking within the Goal Story MCP Server.
Instructions
Identify which goal and step the user is currently focused on to maintain context in discussions and story creation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:397-417 (handler)The handler implementation for the 'goalstory_read_current_focus' tool. It registers the tool with the MCP server and defines the execution logic: makes a GET request to the '/current' API endpoint using the shared doRequest helper and returns the formatted JSON response.server.tool( READ_CURRENT_FOCUS_TOOL.name, READ_CURRENT_FOCUS_TOOL.description, READ_CURRENT_FOCUS_TOOL.inputSchema.shape, async (args) => { const url = `${GOALSTORY_API_BASE_URL}/current`; const result = await doRequest(url, "GET"); return { content: [ { type: "text", text: `Current goal/step focus:\n${JSON.stringify(result, null, 2)}`, }, ], isError: false, }; }, ); /** * Get Story Context
- src/tools.ts:186-194 (schema)The tool specification including name, description, and input schema (empty object, no parameters required). This object is imported and used to register the tool in index.ts./** * GET /current */ export const READ_CURRENT_FOCUS_TOOL = { name: "goalstory_read_current_focus", description: "Identify which goal and step the user is currently focused on to maintain context in discussions and story creation.", inputSchema: z.object({}), };
- src/types.ts:54-54 (schema)TypeScript interface defining the input for the tool (empty).export interface GoalstoryReadCurrentFocusInput {}
- src/index.ts:18-43 (registration)Import of the tool specification from tools.ts, used in the server.tool registration.ABOUT_GOALSTORYING_TOOL, COUNT_GOALS_TOOL, CREATE_GOAL_TOOL, CREATE_SCHEDULED_STORY_TOOL, CREATE_STEPS_TOOL, CREATE_STORY_TOOL, DESTROY_GOAL_TOOL, DESTROY_SCHEDULED_STORY_TOOL, DESTROY_STEP_TOOL, GET_STORY_CONTEXT_TOOL, READ_CURRENT_FOCUS_TOOL, READ_GOALS_TOOL, READ_ONE_GOAL_TOOL, READ_ONE_STEP_TOOL, READ_ONE_STORY_TOOL, READ_SCHEDULED_STORIES_TOOL, READ_SELF_USER_TOOL, READ_STEPS_TOOL, READ_STORIES_TOOL, SET_STEPS_ORDER_TOOL, UPDATE_GOAL_TOOL, UPDATE_SCHEDULED_STORY_TOOL, UPDATE_SELF_USER_TOOL, UPDATE_STEP_NOTES_TOOL, UPDATE_STEP_TOOL, } from "./tools.js";