For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • BedrockAgent
      • CLI Tools
      • Configuration
        • AuthHandler
        • ConfigLoader
          • find_config_file
          • get
          • get_config
          • get_config_file
          • get_section
          • has_config
          • merge_with_env
          • substitute_vars
        • Environment Variables
        • SecurityConfig
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions
      • LiveWire
      • MCP Gateway
      • PomBuilder
      • Prefabs
      • Search
      • SkillBase
      • Skills
      • SWAIGFunction
      • SWMLBuilder
      • SWMLService
      • WebService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • Chat
      • Compat
      • Datasphere
      • Fabric
      • Imported Numbers
      • Logs
      • Lookup
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSub
      • Queues
      • Recordings
      • Registry
      • RestClient
      • Short Codes
      • SignalWireRestError
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • find_config_file (static)
  • Parameters
  • Returns
  • Example
AgentsConfigurationConfigLoader

find_config_file

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

get

Next
Built with

find_config_file (static)

ConfigLoader.find_config_file(service_name=None, additional_paths=None) -> Optional[str]

Static method to locate a config file without loading it.

Parameters

service_name
str

Optional service name. When provided, the method also checks for {service_name}_config.json and .swml/{service_name}_config.json.

additional_paths
list[str]

Additional file paths to check before the default search paths.

Returns

Optional[str] — Path to the first config file found, or None.

Example

1from signalwire.core.config_loader import ConfigLoader
2
3# Find config for the MCP service
4path = ConfigLoader.find_config_file(service_name="mcp")
5# Checks: mcp_config.json, .swml/mcp_config.json, config.json, ...
6print(f"Found: {path}")
7
8# Find with extra paths
9path = ConfigLoader.find_config_file(
10 additional_paths=["/opt/myapp/config.json"]
11)
12print(f"Found: {path}")