So I have a design system that makes a bunch of tool calls, (insert, delete stuff, lots more).
For (primarily) speed reasons I had been playing with the idea of prompting (explicitly and using examples in prompt) to insert codes like ctrl-I
or <insert val="red box"/>
– those patterns would be removed when displayed to the user but trigger an action, just as a tool call but lighter weight.
I meant to ask about it.
Now today I was looking at some articles talking about the lovable prompt … and I saw it defined this in the prompt
File Operations:
- <lov-write> for creating or updating files. Must include complete file contents.
That would be interpreted in the wrapper as an imperative (action request) without a tool call – when I tested it seemed to work.
So I guess I’m looking for confirmation that sometime like this could be done? It’s not turbo hacky? and presumably the reverse could be done (user sends meta-data or response to previous command to assistant) via a pattern specified in prompt.
I don’t know if this Q is clear enough. Appreciate all replies. -J