diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h
index 8c791656..796e3e90 100644
--- a/include/libcamera/internal/yaml_parser.h
+++ b/include/libcamera/internal/yaml_parser.h
@@ -209,6 +209,7 @@ public:
 
 	bool contains(std::string_view key) const;
 	const YamlObject &operator[](std::string_view key) const;
+	const YamlObject *find(std::string_view key) const;
 
 private:
 	LIBCAMERA_DISABLE_COPY_AND_MOVE(YamlObject)
diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp
index db256ec5..da8cb61f 100644
--- a/src/libcamera/yaml_parser.cpp
+++ b/src/libcamera/yaml_parser.cpp
@@ -397,6 +397,29 @@ const YamlObject &YamlObject::operator[](std::string_view key) const
 	return *iter->second;
 }
 
+/**
+ * \fn YamlObject::find(std::string_view key) const
+ * \brief Retrieve a member by name from the dictionary
+ *
+ * This function retrieves a member of a YamlObject by name. Only YamlObject
+ * instances of Dictionary type associate elements with names, calling this
+ * function on other types of instances or with a nonexistent key results in
+ * \a nullptr being returned.
+ *
+ * \return The YamlObject corresponding to the \a key member
+ */
+const YamlObject *YamlObject::find(std::string_view key) const
+{
+	if (type_ != Type::Dictionary)
+		return nullptr;
+
+	auto iter = dictionary_.find(key);
+	if (iter == dictionary_.end())
+		return nullptr;
+
+	return iter->second;
+}
+
 #ifndef __DOXYGEN__
 
 class YamlParserContext
