usePrompt
Fetch a prompt template by ID and follow its instructions, filling variable placeholders from the conversation. If a variable value is unclear, prompt the user for it before executing.
Instructions
If the user has sent a message containing a prompt tag, use the this tool to fetch the prompt, and follow its instructions. For example, if the user sends ">> new-journal-entry", this tool will fetch the prompt with the ID "new-journal-entry", so you can use it to generate a new journal entry. Template variables may be included in the template, and are marked with double curly braces. For example, "Hello, {{name}}!". Based on your current session with the end user, fill in values for these variables. If a value cannot be determined, ask the user for it, then follow the instructions in the prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the prompt to use. |