Debugging API calls made with apple shortcuts and keyboard maestro

Hi there

I’m using keyboard maestro on MacOS with apple shortcuts app for the API request and I’m trying to get an assistant to work.
My macro keeps making screenshots of an area of the screen, does OCR and writes the content to a file (it’s an old book with messed up encoding, can’t copy paste).
Everything works correctly…except
Somehow my api call doesn’t get the text written to my file. (which is strange, I tested the variables outside the api call, they’re storing the right information).
How can I use the api to see my own prompt? I was looking through the docs and I couldn’t find it. I need to see what gets queried since it’s not responding correctly and the variables I pass down seem to be correct. (did classical debugging printing everything each step of the way)