palace_mine
Mine or re-sync a code repository directory into the palace, initializing palace.yaml on first run and updating file drawers for added, edited, and removed files.
Instructions
Mine (or re-sync) a CODE REPOSITORY directory into the palace (only after the user agrees). Repos only: chats or non-repo topics have no folder to mine, so use palace_create_wing for those. Accepting this implicitly initialises palace.yaml for first-time repos and then syncs files into the project's wing: new files are added, edited files are re-mined so their drawers reflect the latest content, unchanged files are left alone, and drawers for files deleted from disk are removed. The result's summary field reports new/updated/unchanged/removed file counts.
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": {
"project_path": "<project_path>"
},
"name": "palace_mine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wing | No | Override the wing name (defaults to palace.yaml or the directory slug) | |
| limit | No | Max files to process (0 = no limit) | |
| dry_run | No | Report what would be mined without writing | |
| project_path | Yes | Absolute path to the project directory to mine |