Replace published project graph
update_scannerReplace the privacy-filtered published graph for exactly the existing Brain Scanner project identified by projectId. Never creates a project, infers one by display name, inspects a repository remotely, or changes Git or GitHub. Requires a changeNarrative with four plain-language sections written by the caller.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"expectedProjectVersion": "<expectedProjectVersion>",
"nodes": "<nodes>",
"edges": "<edges>",
"idempotencyKey": "<idempotencyKey>",
"changeNarrative": "<changeNarrative>"
},
"name": "update_scanner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Directed relationships between graph nodes, using their stable IDs. | |
| nodes | Yes | Privacy-filtered graph nodes with stable IDs, labels and component types. | |
| projectId | Yes | Owned Brain Scanner project ID from the account's project list; not a local path or repository URL. | |
| sessionId | No | ID of this project's active agent session, returned when the session was started. Not needed for read-only calls. | |
| idempotencyKey | Yes | Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action. | |
| mappedRevision | No | Local revision identifier represented by the submitted mapping. | |
| changeNarrative | Yes | Write four short, privacy-filtered summaries: added, updated, removed and relationships. Describe what changed in the graph; use a plain statement when a section has no changes. | |
| expectedProjectVersion | Yes | Current hosted project version from the latest project status read; guards against overwriting a newer graph publication. |