get_package_source
Retrieve the contents of a specific source file from a @gaddario98 React package by package ID and file path; omit filePath to list all files. Use list_packages first to find packages.
Instructions
Read the contents of a specific source file from a @gaddario98 React package. Use list_packages first to see available packages, then explore files.
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": {
"packageId": "<packageId>"
},
"name": "get_package_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Relative path to the file within the package directory (e.g., 'hooks/useFormManager.tsx'). Omit to list all source files. | |
| packageId | Yes | Package identifier: 'react-core', 'react-form', 'react-queries', or 'react-pages' |