cli.call_arguments
A jadpo call command names no query or action, one the project doesn't declare, input that isn't a JSON object, or a user --as can't sign in as.
Area 14, Tools; not declinable; the next step is usually the agent's.
Why Jadpo refuses it
jadpo call runs one query or action, which may write, so it runs the one you name and never a guess at another. Its input is one JSON object, each member a parameter by name, and --as signs in as a user who is in the database, as a route would sign them in.
What it looks like
A project whose one action is add_note:
use notes/entities { Note }use notes/types { NoteBody }/// Writes a note down.action add_note(body: NoteBody) -> Note { return Note.create { set: { body: body } }}
The name is mistyped:
jadpo call add_notes --input '{"body":"Buy milk"}' error add_notes isn't a query or action
- reason
jadpo callruns a query or action the project declares, by its name.- next
- Use
add_noteinstead ofadd_notes(agent) - rule
- cli.
call_ arguments - help
- https://jadpo.
dev/docs/errors/cli. call_ arguments
(agent) at the end of the next: line means your coding agent can make the fix itself.
How to fix it
If the name is mistyped, use the one the project declares, with its domain when two domains share it:
jadpo call add_note --input '{"body":"Buy milk"}'The call runs add_note and prints the note it wrote, as JSON.
If --input was refused, give it one JSON object, quoted for the shell, its members the parameters by name:
jadpo call add_note --input '{"body":"Book the dentist"}'Each member is read as a request's body is, so a value of the wrong type answers invalid_input, naming the field.
Related
Markdown for agents: /docs/errors/cli.call_arguments.md.Built from Jadpo's main branch at commit ee389ee.