MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get_node_data

Method get_node_data

source/MaaAgentServer/RemoteInstance/RemoteContext.cpp:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148std::optional<json::object> RemoteContext::get_node_data(const std::string& node_name) const
149{
150 ContextGetNodeDataReverseRequest req {
151 .context_id = context_id_,
152 .node_name = node_name,
153 };
154
155 auto resp_opt = server_.send_and_recv<ContextGetNodeDataReverseResponse>(req);
156 if (!resp_opt || !resp_opt->has_value) {
157 return std::nullopt;
158 }
159 return resp_opt->node_data;
160}
161
162MaaContext* RemoteContext::clone() const
163{

Calls

no outgoing calls

Tested by

no test coverage detected