register_context_script
Register a Python script for later execution in Blender, organizing by category with an option to make it permanent.
Instructions
Register a Python script for later execution in Blender.
Args:
script_name: Name for the script (without .py extension)
script_content: The Python code to save
category: Category/folder to organize scripts (default: "default")
permanent: If True, script survives context clearing operations (default: False)
Returns:
Success/error message
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": {
"script_name": "<script_name>",
"script_content": "<script_content>"
},
"name": "register_context_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | default | |
| permanent | No | ||
| script_name | Yes | ||
| script_content | Yes |