-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Feature Request: Add placeholder support in Commands #2540
Copy link
Copy link
Open
Description
Description
It would be useful to add support for placeholders in the user commands feature.
For example, a user may create a file /commands/send_email.md that describes an email template. This Markdown file could contain placeholders such as ${recipient} or ${cc}. These values often cannot be reliably extracted from the conversation context by the AI and instead require user confirmation or manual input.
Proposal
Allow users to mark parameter placeholders in the Markdown document with a defined format. Placeholders should be categorized into two types:
- auto: Values are automatically extracted by the AI from the workspace context, but must still be confirmed by the user. If the user rejects the auto-suggested value, they should be able to manually input it.
- input: Values are directly filled in by the user through a form input.
Sample Syntax
Here is an example of how placeholders could be defined in Markdown:
# Send Email Command
Please send an email with the following details:
- Recipient: ${recipient:auto}
- CC: ${cc:input}
- Subject: ${subject:input}
- Body: ${body:auto}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels