count_lines_file
Count lines in a file from its absolute path. Uses splitlines semantics, so a trailing newline adds no empty line.
Instructions
Count lines in a file (str.splitlines semantics: a trailing newline adds no empty line).
Args:
file_path: Absolute path to the 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": {
"file_path": "<file_path>"
},
"name": "count_lines_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |