πŸ“„ File detail

tools/TaskGetTool/prompt.ts

🧩 .tsπŸ“ 25 linesπŸ’Ύ 823 bytesπŸ“ text
← Back to All Files

🎯 Use case

This module implements the β€œTaskGetTool” tool (Task Get) β€” something the model can call at runtime alongside other agent tools. On the API surface it exposes DESCRIPTION and PROMPT β€” mainly types, interfaces, or factory objects.

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

export const DESCRIPTION = 'Get a task by ID from the task list' export const PROMPT = `Use this tool to retrieve a task by its ID from the task list. ## When to Use This Tool

πŸ“€ Exports (heuristic)

  • DESCRIPTION
  • PROMPT

πŸ–₯️ Source preview

export const DESCRIPTION = 'Get a task by ID from the task list'

export const PROMPT = `Use this tool to retrieve a task by its ID from the task list.

## When to Use This Tool

- When you need the full description and context before starting work on a task
- To understand task dependencies (what it blocks, what blocks it)
- After being assigned a task, to get complete requirements

## Output

Returns full task details:
- **subject**: Task title
- **description**: Detailed requirements and context
- **status**: 'pending', 'in_progress', or 'completed'
- **blocks**: Tasks waiting on this one to complete
- **blockedBy**: Tasks that must complete before this one can start

## Tips

- After fetching a task, verify its blockedBy list is empty before beginning work.
- Use TaskList to see all tasks in summary form.
`