register_file
Register files or folders created outside AIDrive with a purpose and retention period so they are tracked and checked for cleanup or extension.
Instructions
Register a file or folder you created on this computer outside AIDrive's own files (a scratch script, probe, report, export, temporary data, a build or package folder, a large artifact) with why it exists and how long it is needed (keep_days, default 3). AIDrive records the machine, absolute path, git worktree and branch, its kind and its measured size; build folders in bound folders are indexed automatically by the watcher; after the deadline the project brief checks whether the file still exists and asks the assistant to delete it or extend it. Registering the same path again updates it. Requires a files:write key.
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": {
"path": "<path>",
"purpose": "<purpose>"
},
"name": "register_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | true: no deadline (a deliverable or a file the owner wants kept). | |
| kind | No | temp, build, package or artifact (default: detected for build and package folders, otherwise file). | |
| path | Yes | The file you created or will create on this computer (absolute, or relative to your working folder). | |
| purpose | Yes | Why it exists, in one line, so the next assistant knows whether it is still needed. | |
| session | No | The session that created it, if you know its id or name. | |
| keep_days | No | How many days it is needed (1-400, default 3). Omit with keep=true for files needed until someone decides. |