set_env_vars
Set environment variables in a Colab notebook runtime. Optionally keep the generated setup cell for later reuse.
Instructions
Sets environment variables in the current Colab Python runtime by executing a generated setup cell.
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": {
"variables": "<variables>"
},
"name": "set_env_vars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | Yes | Environment variable names and values to set. | |
| persist | No | If true, keep the generated setup cell in the notebook. If false, delete it after execution while leaving the runtime environment variables set. | |
| markerName | No | Marker name used to find this setup cell later with rerun_env_setup_cells. | default |
| cellIndex | No | Optional insertion index for the generated setup cell. Defaults to the end of the notebook. |