prompt field that the calling agent can read and act on.
You can use --prompt in two ways: as a standalone button that contains only instructions, or as a modifier on an existing code or HTTP button.
Standalone prompt button
A standalone prompt button has no code to execute. It just carries an instruction. Use this to encode a task, a decision procedure, or an analysis request that an agent should carry out itself.Prompt as a modifier
Add--prompt to a code or HTTP button to attach supplementary instructions alongside the execution result. The code runs first, then the result and the prompt are both present in the output.
Updating prompt instructions
The prompt lives at~/.buttons/buttons/<name>/AGENT.md — agents look for that filename by convention. Edit it directly, or recreate the button:
Related
- Code buttons — add code execution alongside a prompt
- Arguments — typed args available in the prompt
- JSON output — reading
promptprogrammatically