Skip to content

get_change

Read a change. One change to a tree, as list_changes names it: what was asked, each file’s edit (frontmatter field by field, then its lines), what the checks found, who decided or applied it, its comments, and its page, where editors review and apply it. Read-only.

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.
id string Yes The change’s ID, as list_changes gives it.

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.
instruction string No What was asked for, in the asker’s words, when it was asked rather than edited.
decided object No The editor who accepted or declined it, and when.
decided.by string Yes The editor, by name.
decided.at string Yes When (ISO 8601).
applied object No Who applied it, when, and in which commit.
applied.by string Yes The editor, by name.
applied.at string Yes When (ISO 8601).
applied.commit string Yes The commit that applied it.
edits list of objects Yes Its edits, one per file.
edits[].path string Yes The file’s path in the tree.
edits[].kind create | edit | move | delete Yes What it does to the file: creates, edits, moves (here, from from), or deletes it.
edits[].from string No For a move, the file’s path before.
edits[].size number No For a file it attaches that isn’t markdown, its size in bytes.
edits[].fields list of objects No A markdown file’s frontmatter changes, field by field.
edits[].fields[].name string Yes The frontmatter key.
edits[].fields[].before string No Its value before; absent when it was added.
edits[].fields[].after string No Its value after; absent when it was removed.
edits[].lines list of strings No A markdown file’s text changes, each line marked + (added), - (removed), or a space (unchanged), with long unchanged runs left out; absent for other files.
findings list of objects Yes What the checks found on its pages when it was last saved.
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.
comments list of objects Yes Its comments, oldest first.
comments[].by string Yes Who wrote it, by name.
comments[].at string Yes When (ISO 8601).
comments[].text string Yes What they wrote.

Asked “What does Mia’s change to Acme Corp do?”, an assistant might call get_change with:

Arguments
{
"tree": "company",
"id": "6f1e2d3c-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}

On OKForest’s test Forest (Acme’s made-up company knowledge), it returns:

Result
{
"id": "6f1e2d3c-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"title": "Say Acme Corp buys loyalty too",
"state": "requested",
"by": "Mia Chen",
"asked": "2026-09-28T09:00:00.000Z",
"updated": "2026-09-28T09: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/6f1e2d3c-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"edits": [
{
"path": "customers/acme-corp.md",
"kind": "edit",
"fields": [
{
"name": "tags",
"before": "customer, retail",
"after": "customer, retail, loyalty"
}
],
"lines": [
" # Acme Corp",
" ",
"- Acme Corp buys our retail analytics plan. Their main competitor of ours",
"+ Acme Corp buys our retail analytics and loyalty plans. Their main competitor of ours",
" is [Rival Co](../competitors/rival-co.md); see [their site](https://acme.example)."
]
}
],
"findings": [],
"comments": [
{
"by": "Raj Patel",
"at": "2026-09-28T10:00:00.000Z",
"text": "Since when?"
}
]
}