Skip to main content
Update a structured project resource source file

Tool details

FieldValue
Nameupdate_resource
GroupProject Primitives

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "resource_id": {
      "type": "string",
      "minLength": 1,
      "description": "The resource id associated with this record."
    },
    "pattern": {
      "type": "string",
      "minLength": 1,
      "description": "The pattern associated with this record."
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "description": "Human-readable description for the record."
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Short human-readable title for the record."
    },
    "source_target_kind": {
      "type": "string",
      "description": "The source target kind associated with this record."
    },
    "target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "The target branch id associated with this record."
        },
        {
          "type": "null",
          "description": "Provide the target branch id."
        }
      ],
      "description": "The target branch id associated with this record."
    }
  },
  "required": [
    "project_reference",
    "resource_id"
  ],
  "additionalProperties": false,
  "description": "Structured update resource input schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the record."
    },
    "pattern": {
      "type": "string",
      "description": "The pattern associated with this record."
    },
    "description": {
      "type": "string",
      "description": "Human-readable description for the record."
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Short human-readable title for the record."
    },
    "source_path": {
      "type": "string",
      "description": "The source path associated with this record."
    },
    "source": {
      "type": "string",
      "description": "The source associated with this record."
    },
    "edit_mode": {
      "type": "string",
      "enum": [
        "structured",
        "source_only"
      ],
      "description": "The edit mode associated with this record."
    },
    "source_only_reasons": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One source only reason item associated with this record."
      },
      "description": "List of source only reasons associated with this record."
    }
  },
  "required": [
    "id",
    "pattern",
    "description",
    "title",
    "source_path",
    "source",
    "edit_mode",
    "source_only_reasons"
  ],
  "additionalProperties": false,
  "description": "Structured resource source output schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}