Before you start
The video uses a simple input file named repair.jpeg. Codex already has access to the project workspace and can reach the Medux MCP tools from the same chat.
repair.jpeg.repair_restored.png, downloaded back into the same workspace.User prompt:
Using medux to restore Old Photo (repair.jpeg).
Workflow steps
Ask Codex to restore the old photo
Start with a direct instruction. Codex reads the request, locates repair.jpeg, and checks which Medux capabilities are available in the MCP session.
Create an upload URL and send the source image
Codex uses the Medux upload primitive to create a signed upload URL, then pushes the local JPEG to Medux. This keeps the media transfer inside the agent workflow instead of requiring a separate dashboard.
# Behind the scenes, Codex handles a flow like this:
medux.create_upload_url --filename repair.jpeg --content-type image/jpeg
curl -X PUT "$MEDUX_UPLOAD_URL" -H "Content-Type: image/jpeg" --data-binary "@repair.jpeg"
Submit the Medux photo-repair job
After the file is uploaded, Codex submits the repair request to the Medux photo-repair tool. The job is then queued and moved into processing.
# Conceptual MCP flow:
medux.photo_repair --input "$MEDUX_FILE_URL"
medux.task_query --task-id "$TASK_ID"
Poll the task until the restored image is ready
Codex keeps checking the task status, so the workflow stays hands-free. When Medux moves the job to PROCESSING, Codex waits briefly and asks for the result again.
Download the restored PNG to the workspace
When the Medux job finishes, Codex downloads the generated result instead of leaving it as a remote CDN link only. In the video, the final file is saved as repair_restored.png.
Result preview
The sample run repairs the portrait and produces a cleaner, colorized, higher-resolution PNG while preserving the original composition.
Why this workflow is useful
Medux provides the media-processing layer, while Codex handles the operational details: finding files, choosing the right MCP tool, uploading assets, tracking task status, and saving the final output. That makes old-photo restoration easy to repeat and easy to plug into a larger content pipeline.
Example result
src / rst demonstration
Below is the complete restoration example: src is the original old photo, and rst is the restored result generated by Medux.


Explore related workflows
Continue with a nearby Medux workflow or compare how the same task works across Claude MCP and Codex MCP.