Skip to content

base64 handling not using ToolFile #1509

Description

@baggiiiie

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.

Image Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions