add_to_global
Adds a cross-project rule or fact to a shared AGENTS.md or memory document, with team or personal scope, after confirming it applies beyond the current project.
Instructions
Add one line to a doc every project shares: doc is agents (the AGENTS.md for all
projects: a rule every session should follow, e.g. "always build on a branch, never commit
to main") or memory (a fact or preference that holds across projects, e.g. "the household
uses euros"). Ask the user first, and add only what holds beyond this project; a project's
own rules go in its own AGENTS.md. A line already there is not added twice. scope is team
(the default: the docs every person shares) or personal (the caller's own AGENTS.md or
memory, read only by them: a preference of theirs that is not the team's).
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": {
"doc": "<doc>",
"line": "<line>"
},
"name": "add_to_global"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | ||
| line | Yes | ||
| scope | No | team |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |