Codebase File Read
codebase_file_readRead a single file from a local Drupal module using a module-relative path; blocks unsafe paths and truncates content at 64 KB.
Instructions
Read one file from a local module.
path is module-relative (e.g. 'mymod.module'). Content is
truncated at 64 KB with a truncated flag. Absolute paths, '..'
traversal and symlinks escaping the codebase are rejected.
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": {
"module": "<module>",
"path": "<path>"
},
"name": "codebase_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| module | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||