# onf_update_context_documentation

Maintain concise workspace/workflow/frame documentation when changing its purpose, wiring or operating constraints. Prefer a short accurate update over narration; omit credentials and transient logs. Read current notes first and supply thei

Canonical URL: https://opennodeflow.dev/wiki/tool-onf-update-context-documentation/
JSON reference: https://opennodeflow.dev/wiki/tool-onf-update-context-documentation/index.json
Source snapshot: 2026-10-23

Maintain concise workspace/workflow/frame documentation when changing its purpose, wiring or operating constraints. Prefer a short accurate update over narration; omit credentials and transient logs. Read current notes first and supply their exact expectedRevision; empty markdown clears while advancing revision. Does not save/run a graph.

[Agent workflow authoring](/wiki/mcp-workflow-authoring/) · [All MCP tools](/wiki/mcp-tools/)

## Inputs

| Field | Required | Contract |
| --- | --- | --- |
| `target` | Yes | Structured value |
| `expectedRevision` | Yes | integer |
| `markdown` | Yes | string |

## Exact input schema


```json
{
  "type": "object",
  "properties": {
    "target": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "workspace"
            },
            "workspaceId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            }
          },
          "required": [
            "kind",
            "workspaceId"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "workflow"
            },
            "workflowId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            }
          },
          "required": [
            "kind",
            "workflowId"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "frame"
            },
            "workflowId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            },
            "frameId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            }
          },
          "required": [
            "kind",
            "workflowId",
            "frameId"
          ],
          "additionalProperties": false
        }
      ]
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "markdown": {
      "type": "string",
      "maxLength": 12000
    }
  },
  "required": [
    "target",
    "expectedRevision",
    "markdown"
  ]
}
```


## MCP annotations

- `readOnlyHint`: `false`
- `destructiveHint`: `false`
- `idempotentHint`: `false`
- `openWorldHint`: `false`

Annotations describe tool behavior; they are not an authorization boundary.

## Calling this tool

Use the exact registered name `onf_update_context_documentation` through a compatible MCP client. Start with discovery and read the current object before a change. Pass the documented revision or version guards where required. A JSON Schema default is not a substitute for reading the tool contract.

See [connection setup](/wiki/mcp-connect/) and [agent safety](/wiki/agent-safety/) for transport, permissions and uncertain-action recovery.

---

## Documentation provenance

- `server/context-docs.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
