Title94/100
Upload dataset asset from ChatGPT web
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
Upload a ChatGPT web attachment or generated file to a Content Lake dataset. Pass the file through ChatGPT web file input; ChatGPT web supplies a temporary download URL that Sanity fetches. Works when the ChatGPT web sandbox cannot make HTTP requests. Choose image or file as assetType. Returns an operationId; use assets_upload_status to retrieve the asset and document field reference. Attach the reference with patch_documents, preserving existing field values. If the download URL expires, pass the file again for a fresh URL and a new requestKey. Check the destination before repeating an upload whose outcome is unknown. Source size and fetch time limits apply; processing may take several minutes.
The description explains the capability, when to use it, and what to expect.
Inputs68/100
14 of 18 inputs have descriptions. Add descriptions to the missing inputs, including where to obtain IDs and how to supply values.
intent
Briefly explain why you are making this tool call — the high-level goal, not the specific operation. For example: "migrating content from legacy CMS", "building a product catalog for launch", "cleaning up orphaned references after schema change". Make sure to not include any secrets, API keys, or information that can be considered sensitive. This helps us understand usage patterns and improve the tools.
Clear enough to supply this argument.
projectId
The Sanity project ID
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
dataset
The name of the dataset in the project
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
filename
Original filename, including extension. Not inferred from the source URL.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
requestKey
Optional UUID for retrying an interrupted request. Omit to generate one automatically. Reuse a supplied UUID with identical arguments to retrieve the same upload. For changed arguments or a new attempt after failure, omit it or provide a new UUID.
Clear enough to supply this argument.
assetType
Upload as a dataset image or file asset.
Clear enough to supply this argument.
title
Not provided
Missing description. Explain what this value means and how to supply it.
description
Not provided
Missing description. Explain what this value means and how to supply it.
label
Not provided
Missing description. Explain what this value means and how to supply it.
creditLine
Not provided
Missing description. Explain what this value means and how to supply it.
source › name
External source name.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
source › id
Asset ID in that source.
Clear enough to supply this argument.
source › url
Source attribution URL stored as metadata; separate from the URL fetched for this upload.
Clear enough to supply this argument.
meta
Metadata to extract. Omit to use the API defaults.
Clear enough to supply this argument.
file › download_url
Temporary download URL supplied by ChatGPT web for this file.
Clear enough to supply this argument.
file › file_id
File ID supplied by ChatGPT web.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
file › mime_type
Optional MIME type supplied by ChatGPT web.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
file › file_name
Original filename, including extension. Not inferred from the source URL.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
Annotations100/100
All four behavior hints are declared.
{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}Output schema53/100
Describe the returned fields so an agent can interpret the result.
View output schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"operationId",
"status",
"expiresAt"
],
"properties": {
"error": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"existingAssetId",
"mediaLibraryId",
"message"
],
"properties": {
"code": {
"type": "string",
"const": "asset_already_exists"
},
"message": {
"type": "string"
},
"mediaLibraryId": {
"type": "string",
"minLength": 1
},
"existingAssetId": {
"type": "string",
"pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_.-]{0,127}$"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
},
"additionalProperties": false
}
]
},
"result": {
"type": "object",
"properties": {},
"additionalProperties": true
},
"status": {
"enum": [
"running",
"completed",
"failed",
"unknown"
],
"type": "string"
},
"message": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"operationId": {
"type": "string"
},
"pollAfterMs": {
"type": "number"
}
},
"additionalProperties": false
}