close_scratch
Discard unsaved documents created by import_step without saving them, closing one by scratch_id or name or all of them. It never closes the user's own documents.
Instructions
Close, WITHOUT saving, documents that import_step created and that were never saved.
name=None closes all of them; with a name, only that document, and it refuses (with the reason) if the document was not created by import_step or has been saved. scratch_id (returned by import_step) selects exactly one document; prefer it, because imported documents are often named "Untitled" like the user's own. Never closes the user's documents. A timed-out call may still finish: call status before retrying.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_scratch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| timeout_s | No | ||
| scratch_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |