connect_runtime
Connects to or re-attaches to a Colab, Kaggle, or Jupyter runtime, automatically finding the just-started or previous session so work can resume in every new session.
Instructions
Connect to (or re-attach to) the runtime. Call it with no arguments in most cases.
With no arguments it does the right thing: it finds the Colab/Kaggle session just
started with colab_runtime_start / kaggle_runtime_start (waiting up to
wait_seconds for it), or re-attaches to the runtime used before. Safe to call
in every new session. (For a machine rented with hf_runtime_start, call
hf_runtime_connect instead.)
url, token: only for connecting by hand to a Jupyter server whose address and token you were given. hf_auth: with url/token, set True for a JupyterLab running in a Hugging Face Space (url "https://-.hf.space", token = the Space's JUPYTER_TOKEN).
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": "connect_runtime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| token | No | ||
| hf_auth | No | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |