Set Active Document
set_active_documentSwitch the active Cinema 4D document to another already-open file by specifying its name or list index. Use index when multiple documents share a name.
Instructions
Switch focus to an already-open document, identified by its list index (from list_documents) or name. Pass exactly one of the two. name errors if it matches zero or several open documents — use index to disambiguate. This only switches between documents already open; use open_document to load a file from disk.
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": "set_active_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Document name; errors if it matches zero or several open documents. | |
| index | No | 0-based position in the document list (see `list_documents`). |