tail_file
Read the last lines or bytes from any file in a Colab runtime to inspect background command logs.
Instructions
Returns through Colab Terminal the last lines or bytes from a file in the Colab runtime, useful for background command logs.
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>"
},
"name": "tail_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Runtime file path to read. | |
| lines | No | Number of trailing lines to return. | |
| maxBytes | No | Maximum trailing bytes to read before splitting into lines. |