Call get_code_snippet and extract inner text content. * Caller must free returned string. */
| 7926 | /* Call get_code_snippet and extract inner text content. |
| 7927 | * Caller must free returned string. */ |
| 7928 | static char *call_snippet(cbm_mcp_server_t *srv, const char *args_json) { |
| 7929 | char *raw = cbm_mcp_handle_tool(srv, "get_code_snippet", args_json); |
| 7930 | char *text = extract_text_content(raw); |
| 7931 | free(raw); |
| 7932 | return text; |
| 7933 | } |
| 7934 | |
| 7935 | static bool is_valid_json_response(const char *json) { |
| 7936 | if (!json) { |
no test coverage detected