API or command to send text programmatically

I want to send a text string to the Chat panel in Cursor. At this moment, VS Code does not natively support sending keybindings directly to chat-like panels, such as the Cursor Chat or other similar extensions.

Is there an API or command to send text programmatically? I want to hook into that command via a keybinding.

At present I am using Maccy to paste my intro to each and every prompt and it is getting tiresome.

I need to preface my prompt with some instructions:

  1. Cursors Composer mode is now the default, It allows users to apply changes across multiple files with a single click
  2. never suggest EXPO or JSX and only use my actual code contained in files I identify to you and any other files I may reference in this prompt.
  3. Read my prompt carefully and completely.
  4. Double-check your responses for accuracy before sending them.
  5. Focus on directly answering my specific questions without unnecessary additions.
  6. Ask a question should you have one.
  7. When you are ready to propose changes to my file, provide the complete file without any omissions so I can perform an accurate file comparison. provide the entire file with all the proposed changes incorporated, without any omissions or placeholder comments.

Now here is my prompt:

What is wrong with using custom instructions?

another approach is referencing a “notepad”

My 7 points are set in cursor settings as my custom instructions. They are not being treated as part of my prompts.

I am unsure what you mean “referencing a notepad”. I currently use maccy on a Mac to manage my paste buffer but it is tedious. I am 2 weeks into cursor and already in my 3rd set of 500 fast responses. I also have my pre-prompt set to keypresses in terminal and editor and am just looking for the same in chat.