workspace_import
Import notebooks or files into a Databricks workspace by specifying destination path and content. Supports multiple formats including SOURCE, HTML, JUPYTER, RAW, and DBC.
Instructions
Import a workspace object (notebook or file).
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": {
"path": "<path>",
"content": "<content>"
},
"name": "workspace_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute workspace path of the destination | |
| content | Yes | File/notebook content as text (or base64-encoded for binary) | |
| format_ | No | Import format: SOURCE | HTML | JUPYTER | RAW | DBC | SOURCE |
| language | No | For notebooks: PYTHON | R | SCALA | SQL | SQLPYTHON | |
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |