I asked for variables, but got code instead. What happened?
Your agent chooses which tool to use based on your prompt, and sometimes it chooses the wrong one. Say exactly what you want, for example: "Get the variable names and values for this selection." Learn more about naming specific tools.