get_prompts
See which agent prompt led to which commands by reading the prompt text stored on each command record; filter by time, executor, or session.
Instructions
Agent prompts recorded alongside the commands they were running under, grouped prompt by prompt. Use it to see which instruction led to which commands. This reads the prompt text stored on each command record, not an agent's transcript — for the transcript of a captured session use get_agent_session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only prompts whose commands ran at or after this time: today, yesterday, N minutes ago, N hours ago, N days ago, N weeks ago, YYYY-MM-DD, or an ISO 8601 date-time such as 2026-10-18T10:00:00Z or 2026-10-18T10:00:00+05:30 (no offset means local time) | |
| limit | No | Max rows in this page (default: 10) | |
| detail | No | Add directory, duration, executor and session to each row (default: false) | |
| offset | No | Rows to skip; pass the response's next_offset to page forward | |
| executor | No | Filter by executor (e.g. claude-code, cursor) | |
| session_id | No | Filter to a specific session |