Call get_code_snippet and extract inner text content. * Caller must free returned string. */
| 2808 | /* Call get_code_snippet and extract inner text content. |
| 2809 | * Caller must free returned string. */ |
| 2810 | static char *call_snippet(cbm_mcp_server_t *srv, const char *args_json) { |
| 2811 | char *raw = cbm_mcp_handle_tool(srv, "get_code_snippet", args_json); |
| 2812 | char *text = extract_text_content(raw); |
| 2813 | free(raw); |
| 2814 | return text; |
| 2815 | } |
| 2816 | |
| 2817 | static bool is_valid_json_response(const char *json) { |
| 2818 | if (!json) { |
no test coverage detected