{"command":{"effect":"write","timeoutSeconds":120,"inputSchema":{"type":"object","description":"Copies inline bytes or a Files API file into a connected execution environment, replacing an existing regular file at the same path. Upload between turns and wait for success before starting the next turn. See [environment files](https://developers.openai.com/api/docs/guides/agents-api/environments/files).","properties":{"path":{"type":"object","properties":{"environment_id":{"type":"string","minLength":0,"maxLength":1048576,"description":"The ID of the environment."}},"required":["environment_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/HostedEnvironmentFileParam"}},"required":["path"],"additionalProperties":false,"definitions":{"HostedEnvironmentFileParam":{"oneOf":[{"$ref":"#/definitions/HostedEnvironmentFileParamFileId"},{"$ref":"#/definitions/HostedEnvironmentFileParamInline"}],"description":"A file materialized in an OpenAI-hosted execution environment."},"HostedEnvironmentFileParamFileId":{"type":"object","properties":{"type":{"type":"string","enum":["file_id"],"default":"file_id","description":"The type of the object. Always `file_id`."},"file_id":{"type":"string","minLength":1,"maxLength":256,"description":"The ID of the uploaded file."},"path":{"type":"string","minLength":1,"maxLength":4096,"description":"The absolute destination path inside `/workspace`."}},"required":["type","file_id","path"],"additionalProperties":false,"description":"A file previously uploaded through the OpenAI Files API."},"HostedEnvironmentFileParamInline":{"type":"object","properties":{"type":{"type":"string","enum":["inline"],"default":"inline","description":"The type of the object. Always `inline`."},"data":{"type":"string","minLength":0,"maxLength":6990508,"description":"The standard-base64-encoded file contents."},"path":{"type":"string","minLength":1,"maxLength":4096,"description":"The absolute destination path inside `/workspace`."}},"required":["type","data","path"],"additionalProperties":false,"description":"A file supplied directly as standard-base64 data."}}},"name":"Write an agent environment file","id":"openai.createagentenvironmentfile","example":{"path":{"environment_id":"example"}},"maxRequests":1,"summary":false}}