Yes. I did not look but most probably the non interactive mode flag is used (-p)

It does `claude -p "This is the prompt" --dangerously-skip-permissions --output-format json`

Oh! TIL, thank you.