Skip to main content
Update an existing file with new content. Always read the file first before updating.

Tool details

FieldValue
Nameupdate_file
GroupFiles

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "branch_id": {
      "type": "string",
      "description": "Branch ID (omit for main branch)"
    },
    "path": {
      "type": "string",
      "description": "File path"
    },
    "content": {
      "type": "string",
      "description": "New file content"
    }
  },
  "required": [
    "project_reference",
    "path",
    "content"
  ],
  "additionalProperties": false,
  "description": "Input schema for the update_file tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "The path associated with this tool result."
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the update_file tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}