drupal_read_file
Read a file from a Drupal project using its site name and relative path, with secret and PII masking; optionally set start and end lines to target a range.
Instructions
Read a file from the Drupal project (with secret/PII masking)
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": {
"site": "<site>",
"path": "<path>"
},
"name": "drupal_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to Drupal root | |
| site | Yes | DDEV site name | |
| end_line | No | End line | |
| start_line | No | Start line |