Compact artifact file
rubrkit_compact_artifact_fileShorten a markdown or text prompt without losing instructions. mode standard (default) is a free deterministic pass that saves a new version unless dryRun is true; requires files:write for API keys. mode deep starts an AI compaction job that uses credits, verifies every instruction was kept, and never saves on its own: poll the returned job, then call rubrkit_apply_deep_compaction; requires compactions:run for API keys.
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": {
"artifactBundleId": "<artifactBundleId>",
"fileId": "<fileId>"
},
"name": "rubrkit_compact_artifact_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | standard | |
| dryRun | No | ||
| fileId | Yes | ||
| artifactBundleId | Yes |