count_lines_in_file
Count the number of lines in a text file and retrieve its metadata. Use to quickly assess file size or verify file integrity during security audits.
Instructions
Count the number of lines in a text file and return file metadata
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_path": "<file_path>"
},
"name": "count_lines_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file to count lines in |