propose_change
Propose a change. Proposes edits to a tree, written out, for its editors to review and apply in OKForest: new pages, edits to pages (front-matter fields set or removed, and text in the body replaced), and pages moved or renamed, deprecated, or deleted. Links and index.md files follow a moved, new, or deleted page, and a page’s files (those only it links to, in its folder or below) move or go with it. The edits are checked first: if a page would have errors, nothing is saved, and the errors come back to fix. Keep a change small, one purpose; each page can be in one edit of it. Read a page with get_concept before editing it, and start a new page from its type’s template when list_types gives one. An editor’s own proposal is in review at once; anyone else’s is a request, which the editors are emailed about. Returns the change, its warnings, and its url, to give the person.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
tree |
string | No | The tree’s slug, as list_trees gives it (not its name). Required unless the Forest has one tree. |
title |
string | Yes | What it does, in a few words: it becomes the commit’s first line. |
edits |
list of undefineds | Yes | The edits, in order. |
Returns
Section titled “Returns”One JSON object (see All tools):
| Field | Type | Always | Description |
|---|---|---|---|
id |
string | Yes | The change’s ID: pass it to get_change. |
title |
string | Yes | What it does, in a few words: its commit’s first line. |
state |
requested | drafting | in-review | applied | declined | withdrawn |
Yes | Where it is: requested (asked for, waiting for an editor), drafting (accepted, an editor writing its edits), in-review (edits written, waiting for an editor to apply them), or done: applied (committed), declined, or withdrawn by whoever asked. |
by |
string | Yes | Who asked for it, by name. |
asked |
string | Yes | When it was asked for (ISO 8601). |
updated |
string | Yes | When it last changed (ISO 8601). |
about |
string | No | The page it was asked about, when it was asked from one. |
paths |
list of strings | Yes | The files it creates, edits, moves, or deletes. |
url |
string | Yes | Its page in OKForest, where editors review and apply it. |
findings |
list of objects | Yes | What the checks found: warnings to consider. |
findings[].ruleId |
string | Yes | The rule, as okf validate names it. |
findings[].severity |
error | warning | info |
Yes | How serious it is: an error stops applying. |
findings[].message |
string | Yes | What the rule found. |
findings[].file |
string | Yes | The file it’s in. |
findings[].line |
number | No | The line, when the rule gives one. |
Example
Section titled “Example”Asked “Tag Acme Corp as a loyalty customer, and say they buy the loyalty plan.”, an assistant might call propose_change with:
{ "tree": "company", "title": "Say Acme Corp buys the loyalty plan", "edits": [ { "kind": "edit", "path": "customers/acme-corp.md", "fields": { "tags": [ "customer", "retail", "loyalty" ] }, "replacements": [ { "old": "our retail analytics plan.", "new": "our retail analytics and loyalty plans." } ] } ]}On OKForest’s test Forest (Acme’s made-up company knowledge), it returns:
{ "id": "4b1c9e7a-2f3d-4a5b-8c6d-7e8f9a0b1c2d", "title": "Say Acme Corp buys the loyalty plan", "state": "in-review", "by": "Jane Doe", "asked": "2026-10-01T00:00:00.000Z", "updated": "2026-10-01T00:00:00.000Z", "about": "customers/acme-corp.md", "paths": [ "customers/acme-corp.md" ], "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/-/changes/4b1c9e7a-2f3d-4a5b-8c6d-7e8f9a0b1c2d", "findings": []}