Read a file produced by Codex
codex_read_artifactRead a large generated artifact from a Codex workspace, retrieving images as image content and all other files as text.
Instructions
Read one file from a Codex workspace, for artifacts that were too large to inline. Images come back as image content, everything else as text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "codex_read_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file, relative to the workspace root or absolute inside it. | |
| max_bytes | No | Refuse files larger than this. Default 5000000. |