nrf_read
Read text files from the nRF Connect SDK repository to access documentation, source code, and configuration examples for development.
Instructions
Read the contents of a file from the nRF Connect SDK repo (nrfconnect/sdk-nrf @ main).
Works for any text file: .rst documentation, .c/.h source, CMakeLists.txt, Kconfig, prj.conf, .yaml, README.rst, etc.
Use nrf_list to discover paths first. Examples:
"samples/bluetooth/central_bas/README.rst"
"samples/bluetooth/central_bas/src/main.c"
"samples/bluetooth/central_bas/CMakeLists.txt"
"samples/bluetooth/central_bas/prj.conf"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path within the repo (e.g. 'samples/bluetooth/peripheral_hr/src/main.c') |