get_file
Retrieve file contents from Mozilla repositories to access code directly within the Searchfox MCP Server environment.
Instructions
Get the contents of a specific file from specified repository.
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": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name | mozilla-central |
| path | Yes | File path within the repository |