get_prompts
View global prompt settings for task management, including instructions, prefixes, and suffixes applied to all tasks in TaskFlow MCP.
Instructions
Get the current prompts configuration including instructions, taskPrefix, and taskSuffix settings.
This tool helps you view the current global prompts settings that are applied to all tasks.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/TaskFlowTools.ts:645-647 (handler)The handler function for the 'get_prompts' tool, which calls the service method to retrieve prompts.async get_prompts() { return service.getPrompts(); },
- src/tools/TaskFlowTools.ts:426-435 (schema)Tool schema definition including name, description, and empty input schema for 'get_prompts'.export const GET_PROMPTS_TOOL: Tool = { name: "get_prompts", description: "Get the current prompts configuration including instructions, taskPrefix, and taskSuffix settings.\n\n" + "This tool helps you view the current global prompts settings that are applied to all tasks.", inputSchema: { type: "object", properties: {}, }, };
- src/server/TaskFlowServer.ts:63-89 (registration)Registration of the 'get_prompts' tool (as GET_PROMPTS_TOOL) in the server's listTools handler.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ PLAN_TASK_TOOL, GET_NEXT_TASK_TOOL, MARK_TASK_DONE_TOOL, OPEN_TASK_DETAILS_TOOL, LIST_REQUESTS_TOOL, ADD_TASKS_TO_REQUEST_TOOL, UPDATE_TASK_TOOL, DELETE_TASK_TOOL, ADD_SUBTASKS_TOOL, MARK_SUBTASK_DONE_TOOL, UPDATE_SUBTASK_TOOL, DELETE_SUBTASK_TOOL, EXPORT_TASK_STATUS_TOOL, ADD_NOTE_TOOL, UPDATE_NOTE_TOOL, DELETE_NOTE_TOOL, ADD_DEPENDENCY_TOOL, GET_PROMPTS_TOOL, SET_PROMPTS_TOOL, UPDATE_PROMPTS_TOOL, REMOVE_PROMPTS_TOOL, ARCHIVE_COMPLETED_REQUESTS_TOOL, LIST_ARCHIVED_REQUESTS_TOOL, RESTORE_ARCHIVED_REQUEST_TOOL, ],
- The service method implementing the core logic: loads task data and returns the prompts configuration.public async getPrompts() { await this.loadTasks(); return { status: "prompts_retrieved", prompts: this.data.prompts || null, message: this.data.prompts ? "Current prompts configuration retrieved." : "No prompts configuration found." }; }