Skip to content

Feature Request: Add placeholder support in Commands #2540

@Zim-Inn

Description

@Zim-Inn

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions