issues and observation
I have observed that, when an API returned file content as base64 inside a json blob, agents tried to decode it with atob, TextDecoder and other methods that's not made available in the quickjs.
and because of this, agents then tried to handwrite a decoder inside quickjs, completely ignoring the emit() and ToolFile related instructions in the skill.
potential fixes
- update the skill to instruct agents to also wrap base64 data from json responses in a
ToolFile and call emit().
other info
- executor version:
1.5.36
- model/harnees used: opus 4.8/5 in cursor, 5.6 sol in pi with my own pi-executor adapter
- connected to github with its openAPI spec
- repro prompt:
use `executor` to fetch a text file from any GitHub repo you have access to via `repos.getContent`, show content
stop and report if there's any error during the executor call and show me the code u wrote
issues and observation
I have observed that, when an API returned file content as base64 inside a json blob, agents tried to decode it with
atob,TextDecoderand other methods that's not made available in the quickjs.and because of this, agents then tried to handwrite a decoder inside quickjs, completely ignoring the
emit()andToolFilerelated instructions in the skill.potential fixes
ToolFileand callemit().other info
1.5.36