check_if_file_exists
Verify the existence of a file (notebook) in the user's shared space. Provides a JSON response indicating file status, including existence and a descriptive message.
Instructions
Check if a file (notebook) exists in the user's shared space.
Args:
file_name: Name of the file to check (with or without .ipynb extension)
Returns:
JSON object with the file existence status
{
"exists": True/False,
"message": "File exists" or "File does not exist"
}
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": {
"file_name": "<file_name>"
},
"name": "check_if_file_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | No | ||
| file_name | Yes |