# Large JSON object to "submit\_tool\_outputs"?

**URL:** <https://community.openai.com/t/large-json-object-to-submit-tool-outputs/682334>\
**Category:** API\
**Created:** [March 14, 2024, 4:23am UTC](https://community.openai.com/t/large-json-object-to-submit-tool-outputs/682334 "2024-03-14T04:23:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoupiestZebra](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/soupiestzebra/32/146493_2.png) [@SoupiestZebra](https://community.openai.com/u/SoupiestZebra)\
**Post date:** [March 14, 2024, 4:23am UTC](https://community.openai.com/t/large-json-object-to-submit-tool-outputs/682334/1 "2024-03-14T04:23:36Z")

</div>

I have a well-working custom GPT that calls the Airtable API to pull a table, and find _relatively_ matching records. Currently trying to migrate this to an Assistant callable via API.

Right now when I pass the stringified Airtable API response in:

```auto
const run = await openai.beta.threads.runs.submitToolOutputs(
    retrievedRun.thread_id,
    retrievedRun.id,
    {
      tool_outputs: [
        {
          tool_call_id: retrievedRun.required_action.submit_tool_outputs.tool_calls[0].id,
          output: JSON.stringify(airtable_data),
        },
      ],
    }
  );

```

I receive the message “Content not found or not text type.” Worth noting, when I shorten it to just an item or two, it figures it out. So it doesn’t seem like an actual response length issue, maybe a comprehension issue?

But as far as I’m aware, unlike the GPT API relationships, for the Assistant functions I don’t go as far as defining the response structure to help it?

Please let me know if you have any ideas.
